Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvPrefix = "ARTEFACTOR_" // FlagDockerImages specifies a to newline seperated list of docker images to save FlagDockerImages = "docker-images" // FlagArchiveDir is the directory to save archives into FlagArchiveDir = "archive-dir" // FlagGitRepos specifies a newline speerated list of local or remote git repos FlagGitRepos = "git-repos" // FlagWebFiles specifies a whitespace delimited set of csv's with: // url,file,md5,[true|false (executable)] FlagWebFiles = "web-files" // FlagLogs enabled debug logs FlagLogs = "logs" // DefaultArchiveDir DefaultArchiveDir = "downloads" )
View Source
const ( FlagDockerRegistry string = "docker-registry" // PublishCommand is the sub command syntax PublishCommand string = "publish" )
View Source
const ( RestoreCommand string = "restore" FlagRestoreSourceDir string = "source-dir" FlagRestoreDestDir string = "dest-dir" )
SaveCommand is the sub command syntax
View Source
const ( SaveCommand string = "save" SaveDirMetaFile string = "saveDir.meta" )
SaveCommand is the sub command syntax
Variables ¶
View Source
var ( // RootCmd represents the base command when called without any subcommands RootCmd = &cobra.Command{ Use: "artefactor", Short: "artefactor saves things to files", Long: "artefactor saves docker containers, git repos and web files to, err, files", RunE: func(c *cobra.Command, args []string) error { common(c) if c.Flags().Changed("version") { printVersion() return nil } return c.Usage() }, } )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main(). It only needs to happen once to the rootCmd.
func GetEnvName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.