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, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { 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 diff between data model version", Long: diffLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error err = DiffRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var HistoryCmd = &cobra.Command{ Use: "history", Aliases: []string{ "hist", "h", }, Short: "list the snapshots for a data model", Long: historyLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error err = HistoryRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var InfoCmd = &cobra.Command{ Use: "info", Aliases: []string{ "i", }, Short: "print details for a data model", Long: infoLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error err = InfoRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Aliases: []string{ "ls", }, Short: "print available data models", Long: listLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { 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 of diffs for a data model", Long: logLong, PreRun: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) }, Run: func(cmd *cobra.Command, args []string) { var err error err = LogRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
Functions ¶
func CheckpointRun ¶ added in v0.5.15
func HistoryRun ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.