Documentation
¶
Index ¶
- Variables
- func NewCmdBranch(out io.Writer) *cobra.Command
- func NewCmdCheckout(out io.Writer) *cobra.Command
- func NewCmdCommit(out io.Writer) *cobra.Command
- func NewCmdConfig(out io.Writer) *cobra.Command
- func NewCmdInit(out io.Writer) *cobra.Command
- func NewCmdList(out io.Writer) *cobra.Command
- func NewCmdLog(out io.Writer) *cobra.Command
- func NewCmdReset(out io.Writer) *cobra.Command
- func NewCmdRm(out io.Writer) *cobra.Command
- func NewCmdSwitch(out io.Writer) *cobra.Command
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "dvol", Short: "dvol is a version control system for your development data in Docker", Long: `dvol ==== dvol lets you commit, reset and branch the containerized databases running on your laptop so you can easily save a particular state and come back to it later.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if _, err := os.Stat(basePath); err != nil { if err := os.MkdirAll(basePath, 0600); err != nil { return fmt.Errorf("Could not create dvol directory %s: %v", basePath, err) } } dvolAPIOptions = api.DvolAPIOptions{ BasePath: basePath, DisableDockerIntegration: disableDockerIntegration, } return initialiseConfig() }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.