func runTileAction(commandName string, tile tileregistry.Tile) (err error) { switch commandName { case "backup": err = tile.Backup() case "restore": err = tile.Restore() } return }
func runTileAction(commandName string, tile tileregistry.Tile) (err error) { lo.G.Debug("Running %s for tile: %+v", commandName, tile) switch commandName { case "backup": err = tile.Backup() case "restore": err = tile.Restore() } return }