MCPcopy
hub / github.com/peak/s5cmd / NewCopyCommandFlags

Function NewCopyCommandFlags

command/cp.go:229–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227}
228
229func NewCopyCommandFlags() []cli.Flag {
230 copyFlags := []cli.Flag{
231 &cli.BoolFlag{
232 Name: "flatten",
233 Aliases: []string{"f"},
234 Usage: "flatten directory structure of source, starting from the first wildcard",
235 },
236 &cli.BoolFlag{
237 Name: "no-clobber",
238 Aliases: []string{"n"},
239 Usage: "do not overwrite destination if already exists",
240 },
241 &cli.BoolFlag{
242 Name: "if-size-differ",
243 Aliases: []string{"s"},
244 Usage: "only overwrite destination if size differs",
245 },
246 &cli.BoolFlag{
247 Name: "if-source-newer",
248 Aliases: []string{"u"},
249 Usage: "only overwrite destination if source modtime is newer",
250 },
251 &cli.StringFlag{
252 Name: "version-id",
253 Usage: "use the specified version of an object",
254 },
255 &cli.BoolFlag{
256 Name: "show-progress",
257 Aliases: []string{"sp"},
258 Usage: "show a progress bar",
259 },
260 }
261 sharedFlags := NewSharedFlags()
262 return append(copyFlags, sharedFlags...)
263}
264
265func NewCopyCommand() *cli.Command {
266 cmd := &cli.Command{

Callers 2

NewCopyCommandFunction · 0.85
NewMoveCommandFunction · 0.85

Calls 1

NewSharedFlagsFunction · 0.85

Tested by

no test coverage detected