cmd

package
v0.0.0-...-adf6c49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2016 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

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

func NewCmdBranch

func NewCmdBranch(out io.Writer) *cobra.Command

func NewCmdCheckout

func NewCmdCheckout(out io.Writer) *cobra.Command

func NewCmdCommit

func NewCmdCommit(out io.Writer) *cobra.Command

func NewCmdConfig

func NewCmdConfig(out io.Writer) *cobra.Command

func NewCmdInit

func NewCmdInit(out io.Writer) *cobra.Command

func NewCmdList

func NewCmdList(out io.Writer) *cobra.Command

func NewCmdLog

func NewCmdLog(out io.Writer) *cobra.Command

func NewCmdReset

func NewCmdReset(out io.Writer) *cobra.Command

func NewCmdRm

func NewCmdRm(out io.Writer) *cobra.Command

func NewCmdSwitch

func NewCmdSwitch(out io.Writer) *cobra.Command

Types

type Config

type Config struct {
	// Used to marshal the configuration into YAML
	UserName  string `mapstructure:"user.name" yaml:"user.name"`
	UserEmail string `mapstructure:"user.email" yaml:"user.email"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL