cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package cli provides Cobra commands for the go-apply CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigCommand

func NewConfigCommand() *cobra.Command

NewConfigCommand returns the cobra command for "go-apply config". Subcommands: set, get, show.

func NewDoctorCommand added in v0.3.0

func NewDoctorCommand() *cobra.Command

NewDoctorCommand returns a doctor subcommand using exec.LookPath.

func NewDoctorCommandWithLookPath added in v0.3.0

func NewDoctorCommandWithLookPath(lp func(string) (string, error)) *cobra.Command

NewDoctorCommandWithLookPath returns a doctor subcommand with an injected lookPath.

func NewLogsCommand added in v0.2.1

func NewLogsCommand() *cobra.Command

func NewOnboardCommand

func NewOnboardCommand() *cobra.Command

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

func NewRootCommand(version string) *cobra.Command

NewRootCommand returns the root cobra command for go-apply.

func NewServeCommand

func NewServeCommand() *cobra.Command

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

func NewSetupCommand() *cobra.Command

NewSetupCommand returns the cobra command for "go-apply setup".

func NewUpdateCommand added in v0.1.4

func NewUpdateCommand(version string) *cobra.Command

NewUpdateCommand returns the "update" cobra command.

func NewVersionCommand

func NewVersionCommand(version string) *cobra.Command

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.

Types

type DoctorCmd added in v0.3.0

type DoctorCmd struct {
	// contains filtered or unexported fields
}

DoctorCmd checks that required external binaries are available.

Jump to

Keyboard shortcuts

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