Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountCmd = &cobra.Command{
Use: "account",
Short: "Manage accounts",
}
AccountCmd is the command to manage accounts.
View Source
var CheckCmd = &cobra.Command{
Use: "check",
Short: "Check the configuration",
Long: `
This command checks the configuration and displays any errors.
`,
RunE: runCheckCmd,
}
CheckCmd is the command to check the configuration.
View Source
var ErrTaskNotExist = fmt.Errorf("task does not exist")
View Source
var InitCmd = &cobra.Command{
Use: "init",
Short: "Initialize a new config",
Long: `
Initialize a new config (.builder.yml) in the current directory.
The config will be created with default values.
`,
RunE: runInit,
}
InitCmd is the command to initialize a new config.
View Source
var ResetCmd = &cobra.Command{
Use: "reset",
Short: "Reset the configuration",
Long: `
This command deletes the 'builder.db' file and resets the config to its default values.
`,
RunE: runResetCmd,
}
ResetCmd is the command to reset the config.
View Source
var RootCmd = &cobra.Command{
Use: "builder",
Short: "builder",
}
View Source
var TaskCmd = &cobra.Command{
Use: "task",
Short: "Manage tasks",
}
View Source
var TaskNewCmd = &cobra.Command{
Use: "new name",
Short: "Create a new task [name]",
RunE: createNewTask,
}
View Source
var TaskWorkCmd = &cobra.Command{
Use: "work name",
Short: "Work on a task [name]",
RunE: workOnTask,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.