예제 #1
0
func runTileAction(commandName string, tile tileregistry.Tile) (err error) {
	switch commandName {
	case "backup":
		err = tile.Backup()
	case "restore":
		err = tile.Restore()
	}
	return
}
예제 #2
0
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
}