Documentation ¶
Overview ¶
Package cmdput implements the "ffs put" subcommand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &command.C{ Name: "put", Usage: "<path> ...", Help: `Write file and directory contents to the store. Recursively copy each specified path from the local filesystem to the store, and print the storage key. By default, file and directory stat info are recorded; use --nostat to disable this. Use --xattr to capture extended attributes. Symbolic links are captured, but devices, sockets, FIFO, and other special files are skipped. With "--into", the resulting file is stored under the specified path of the form <root-key>/<path> or @<file-key>/<path>. In this form, only one input path is allowed.`, SetFlags: func(_ *command.Env, fs *flag.FlagSet) { fs.BoolVar(&putConfig.NoStat, "nostat", false, "Omit file and directory stat") fs.BoolVar(&putConfig.XAttr, "xattr", false, "Capture extended attributes") fs.BoolVar(&putConfig.Verbose, "v", false, "Enable verbose logging") fs.StringVar(&putConfig.FilterName, "filter", ".ffsignore", "Read ignore rules from this file") flax.MustBind(fs, &putFlags) }, Run: command.Adapt(runPut), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.