Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplyCmd = &cobra.Command{ Use: "apply", Aliases: []string{ "a", }, Short: "apply a migraion sequence against a data store", Long: applyLong, PreRun: func(cmd *cobra.Command, args []string) { }, Run: func(cmd *cobra.Command, args []string) { var err error err = ApplyRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var CheckpointCmd = &cobra.Command{ Use: "checkpoint", Aliases: []string{ "cp", }, Short: "calculate a migration changeset for a data model", Long: checkpointLong, PreRun: func(cmd *cobra.Command, args []string) { }, 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 current diff for a data model", Long: diffLong, PreRun: func(cmd *cobra.Command, args []string) { }, 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 GetCmd = &cobra.Command{ Use: "get", Aliases: []string{ "g", }, Short: "find and display data models", Long: getLong, PreRun: func(cmd *cobra.Command, args []string) { }, Run: func(cmd *cobra.Command, args []string) { var err error err = GetRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var HistoryCmd = &cobra.Command{ Use: "history", Aliases: []string{ "hist", "h", "log", "l", }, Short: "show the history for a data model", Long: historyLong, PreRun: func(cmd *cobra.Command, args []string) { }, 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 StatusCmd = &cobra.Command{ Use: "status", Aliases: []string{ "st", }, Short: "print the data model status", Long: statusLong, PreRun: func(cmd *cobra.Command, args []string) { }, Run: func(cmd *cobra.Command, args []string) { var err error err = StatusRun(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.