Documentation
¶
Overview ¶
Package cmd defines heraut's cobra commands: each parses its flags, loads the config, calls internal/app and renders the result (text or --json).
Index ¶
- func ExitCode(err error) int
- func NewChangelogCmd(version string) *cobra.Command
- func NewCheckCmd() *cobra.Command
- func NewCommitCmd() *cobra.Command
- func NewInitCmd(version string) *cobra.Command
- func NewNotesCmd() *cobra.Command
- func NewReleaseCmd(version string) *cobra.Command
- func NewRootCmd(version string) *cobra.Command
- func NewSkillCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func WriteCommandReference(root *cobra.Command, dir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCode ¶ added in v0.8.0
ExitCode maps the error returned from command execution to a process exit code (see Spec 01 — Exit codes). cmd/heraut passes the error from forge/cli.Run here to decide os.Exit's argument.
func NewChangelogCmd ¶ added in v0.6.0
NewChangelogCmd constructs the `heraut changelog` command.
func NewCheckCmd ¶ added in v0.6.0
NewCheckCmd constructs the `heraut check` parent command. When called without a subcommand it runs config + runtime checks.
func NewCommitCmd ¶ added in v0.40.0
NewCommitCmd constructs the `heraut commit` parent command and its subcommands.
func NewInitCmd ¶ added in v0.7.0
NewInitCmd constructs the `heraut init` command.
func NewNotesCmd ¶ added in v0.79.0
NewNotesCmd constructs the `heraut notes` command.
func NewReleaseCmd ¶ added in v0.3.0
NewReleaseCmd constructs the `heraut release` command.
func NewRootCmd ¶
NewRootCmd constructs the root heraut command.
func NewSkillCmd ¶ added in v0.80.0
NewSkillCmd constructs the `heraut skill` parent command: the agent skill bundled in the binary.
func NewVersionCmd ¶ added in v0.4.0
NewVersionCmd constructs the `heraut version` parent command and its subcommands.
func WriteCommandReference ¶ added in v1.0.1
WriteCommandReference writes one Markdown page per visible command of root into dir, plus a README.md index, from the same text --help shows. The root's Long is skipped: it is the terminal banner.
Types ¶
This section is empty.