cmd

package
v4.3.12+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile string

ConfigFile is the configuration file used for running a command

View Source
var RootCmd = &cobra.Command{
	Use:   "khan",
	Short: "khan handles clans",
	Long:  `Use khan to handle clans for your game.`,
}

RootCmd is the root command for khan CLI application

View Source
var Verbose int

Verbose determines how verbose khan will run under

Functions

func Execute

func Execute(cmd *cobra.Command)

Execute runs RootCmd to initialize khan CLI application

func InitConfig

func InitConfig()

InitConfig reads in config file and ENV variables if set.

func PruneStaleData added in v0.12.0

func PruneStaleData(debug, quiet bool) (*models.PruneStats, error)

PruneStaleData prunes old data from the DB

func RunMigrations

func RunMigrations(migrationVersion int64) error

RunMigrations in selected DB

Types

type MigrationError

type MigrationError struct {
	Message string
}

MigrationError identified rigrations running error

func (*MigrationError) Error

func (err *MigrationError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL