Documentation
¶
Overview ¶
Package cli provides Cobra commands for the go-apply CLI.
Index ¶
- func NewConfigCommand() *cobra.Command
- func NewDoctorCommand() *cobra.Command
- func NewDoctorCommandWithLookPath(lp func(string) (string, error)) *cobra.Command
- func NewLogsCommand() *cobra.Command
- func NewOnboardCommand() *cobra.Command
- func NewRootCommand(version string) *cobra.Command
- func NewServeCommand() *cobra.Command
- func NewSetupCommand() *cobra.Command
- func NewUpdateCommand(version string) *cobra.Command
- func NewVersionCommand(version string) *cobra.Command
- func RunUpdateWithChecker(ctx context.Context, currentVersion string, checker port.ReleaseChecker, ...) error
- type DoctorCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigCommand ¶
NewConfigCommand returns the cobra command for "go-apply config". Subcommands: set, get, show.
func NewDoctorCommand ¶ added in v0.3.0
NewDoctorCommand returns a doctor subcommand using exec.LookPath.
func NewDoctorCommandWithLookPath ¶ added in v0.3.0
NewDoctorCommandWithLookPath returns a doctor subcommand with an injected lookPath.
func NewLogsCommand ¶ added in v0.2.1
func NewOnboardCommand ¶
NewOnboardCommand returns the cobra command for "go-apply onboard". It accepts one or more resume files plus optional skills and accomplishments paths. When --reset is set, it clears inputs/, skills.md, accomplishments.json, and accomplishments-*.md (legacy).
func NewRootCommand ¶
NewRootCommand returns the root cobra command for go-apply.
func NewServeCommand ¶
NewServeCommand returns the cobra command for "go-apply serve". It starts an MCP stdio server that exposes pipeline tools for Claude Code integration.
func NewSetupCommand ¶
NewSetupCommand returns the cobra command for "go-apply setup".
func NewUpdateCommand ¶ added in v0.1.4
NewUpdateCommand returns the "update" cobra command.
func NewVersionCommand ¶
NewVersionCommand returns a command that prints the build version.
func RunUpdateWithChecker ¶ added in v0.1.4
func RunUpdateWithChecker(ctx context.Context, currentVersion string, checker port.ReleaseChecker, out io.Writer) error
RunUpdateWithChecker performs the update logic using the given checker. Exported to allow testing with a mock ReleaseChecker.