Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckpointCmd = &cobra.Command{ Use: "checkpoint", Aliases: []string{ "cp", "x", }, Short: "create a snapshot of the data model", Long: checkpointLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = CheckpointRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var DiffCmd = &cobra.Command{ Use: "diff", Aliases: []string{ "d", }, Short: "show the current diff or between datamodel versions", Long: diffLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = DiffRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Aliases: []string{ "ls", }, Short: "print available datamodels", Long: listLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = ListRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var LogCmd = &cobra.Command{ Use: "log", Aliases: []string{ "l", }, Short: "show the history for a datamodel", Long: logLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = LogRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var TreeCmd = &cobra.Command{ Use: "tree", Aliases: []string{ "t", }, Short: "print datamodel structure as a tree", Long: treeLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = TreeRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
Functions ¶
func CheckpointRun ¶ added in v0.5.15
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.