cmd

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 18 Imported by: 0

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

func SetConfig

func SetConfig(conf *config.Config)

SetConfig makes the loaded configuration available to commands

Types

type PkgVersionInfo

type PkgVersionInfo struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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