mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-15 10:18:45 +07:00
docs: add some desc for export command
This commit is contained in:
@ -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))
|
||||
},
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
var (
|
||||
validateCmd = &cobra.Command{
|
||||
Use: "validate",
|
||||
Short: "To validating dae config.",
|
||||
Short: "To validate dae config.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if cfgFile == "" {
|
||||
fmt.Println("Argument \"--config\" or \"-c\" is required but not provided.")
|
||||
|
Reference in New Issue
Block a user