Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RootCmd = &cobra.Command{ Use: "runx", Short: "A language-agnostic, documented command catalog and local CLI executor", Long: `RunX is an open-source, schema-backed CLI task runner and command catalog executor that operates over runx.yaml manifest files.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if helpTree { RenderHelpTree(cmd.OutOrStdout(), helpTreeDepth) if exitOnHelpTree { os.Exit(0) } return nil } if helpDocs { RenderHelpDocs(cmd.OutOrStdout(), cmd) if exitOnHelpTree { os.Exit(0) } return nil } return nil }, Run: func(cmd *cobra.Command, args []string) { renderWelcome() }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately.
func RenderHelpDocs ¶
RenderHelpDocs writes Markdown documentation for a Cobra command to w.
func RenderHelpTree ¶
RenderHelpTree writes the formatted command tree to w.
Types ¶
type PromptInfo ¶
type SkillDetails ¶
type SkillDetails struct {
ID string `json:"id"`
Path string `json:"path"`
Description string `json:"description"`
Metadata SkillMetadata `json:"metadata"`
}
type SkillMetadata ¶
type TreeNode ¶
func BuildCanonicalTree ¶
func BuildCanonicalTree() *TreeNode
BuildCanonicalTree returns the exact tree node structure matching Section 4 of the RFC.