Documentation
¶
Index ¶
Constants ¶
View Source
const DateFormat = "2006-01-02_150405"
Variables ¶
View Source
var Command = &cobra.Command{ Use: "dump [filename]", Aliases: []string{"d", "export"}, Short: "dump a database to a sql file", Long: `The "dump" command dumps a running database to a sql file. If no filename is provided, the filename will be generated. For example, if a dump is performed in the namespace "clevyr" with no extra flags, the generated filename might look like "` + HelpFilename() + `"`, Args: cobra.MaximumNArgs(1), ValidArgsFunction: validArgs, PreRunE: preRun, RunE: run, Annotations: map[string]string{ "access": strconv.Itoa(config.ReadOnly), }, }
View Source
var FilenameTemplate = fmt.Sprintf("{{ .Namespace }}_{{ .Date.Format %#v }}{{ .Ext }}", DateFormat)
Functions ¶
func HelpFilename ¶
func HelpFilename() string
Types ¶
Click to show internal directories.
Click to hide internal directories.