Documentation
¶
Overview ¶
Package apply provides the apply command for the minder CLI
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DocsCmd = &cobra.Command{ Use: "docs", Short: "Generates documentation for the client", Long: `Generates documentation for the client.`, PreRunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.Flags()); err != nil { return cli.MessageAndError(cmd, "Error binding flags", err) } return nil }, RunE: func(cmd *cobra.Command, args []string) error { app.RootCmd.DisableAutoGenTag = true prefix := func(filename string) string { filename = filepath.Base(filename) cmdString := strings.ReplaceAll(strings.TrimSuffix(filename, ".md"), "_", " ") return fmt.Sprintf("---\ntitle: %s\n---\n", cmdString) } identity := func(s string) string { return s } return doc.GenMarkdownTreeCustom(app.RootCmd, "./docs/docs/ref/cli", prefix, identity) }, }
DocsCmd generates documentation
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.