2019-03-21 16:08:17 -07:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2019-03-22 20:47:42 -07:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/spf13/cobra/doc"
|
2019-03-21 16:08:17 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2019-03-22 20:47:42 -07:00
|
|
|
rootCmd.AddCommand(docsCmd)
|
2019-03-21 16:08:17 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
var docsCmd = &cobra.Command{
|
2019-03-22 20:47:42 -07:00
|
|
|
Use: "docs",
|
|
|
|
Short: "Kill an Aurora Job",
|
2019-03-21 16:08:17 -07:00
|
|
|
PersistentPreRun: func(cmd *cobra.Command, args []string) {}, // We don't need a realis client for this cmd
|
|
|
|
PersistentPostRun: func(cmd *cobra.Command, args []string) {}, // We don't need a realis client for this cmd
|
2019-03-22 20:47:42 -07:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
err := doc.GenMarkdownTree(rootCmd, "./docs")
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
},
|
2019-03-21 16:08:17 -07:00
|
|
|
}
|