Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DevCmd represents the development command that starts the bot in development mode // with features like file watching and command validation. DevCmd = &cobra.Command{ Use: "dev", Short: "Start development mode", Long: `Starts the bot in development mode with file watching and command validation.`, Run: runDev, } )
View Source
var PublishCmd = &cobra.Command{
Use: "publish",
Short: "Publish a new version to pkg.dev",
Long: `Publishes a new version of the GoBot CLI source code to pkg.dev.
This command will:
1. Create and push a new git tag
2. Package the CLI source code
3. Publish the package to pkg.dev`,
RunE: runPublish,
}
PublishCmd represents the command that handles versioning and publishing of the CLI tool. It manages version tagging, packaging the CLI source code, and publishing to pkg.dev.
View Source
var SelfUpdateCmd = &cobra.Command{
Use: "self-update",
Short: "Update the CLI to the latest version",
Long: `Checks for and installs the latest version of the GoBot CLI from pkg.dev using go install.`,
RunE: runSelfUpdate,
}
SelfUpdateCmd represents the self-update command
Functions ¶
Types ¶
type PkgVersionInfo ¶
type PkgVersionInfo struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.