docs: add some desc for export command

This commit is contained in:
mzz2017
2023-03-22 22:06:40 +08:00
parent 28cf3adbd2
commit f284322d9b
2 changed files with 6 additions and 4 deletions

View File

@ -7,19 +7,21 @@ package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/daeuniverse/dae/config"
"github.com/spf13/cobra"
)
var (
exportCmd = &cobra.Command{
Use: "export",
Use: "export",
Short: "To export some information for UI developers.",
Run: func(cmd *cobra.Command, args []string) {
_ = cmd.Help()
},
}
exportOutlineCmd = &cobra.Command{
Use: "outline",
Use: "outline",
Short: "To export config structure.",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(config.ExportOutlineJson(Version))
},