MCPcopy Index your code
hub / github.com/peak/s5cmd / NewSyncCommandFlags

Function NewSyncCommandFlags

command/sync.go:74–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72`
73
74func NewSyncCommandFlags() []cli.Flag {
75 syncFlags := []cli.Flag{
76 &cli.BoolFlag{
77 Name: "delete",
78 Usage: "delete objects in destination but not in source",
79 },
80 &cli.BoolFlag{
81 Name: "size-only",
82 Usage: "make size of object only criteria to decide whether an object should be synced",
83 },
84 &cli.BoolFlag{
85 Name: "exit-on-error",
86 Usage: "stops the sync process if an error is received",
87 },
88 }
89 sharedFlags := NewSharedFlags()
90 return append(syncFlags, sharedFlags...)
91}
92
93func NewSyncCommand() *cli.Command {
94 cmd := &cli.Command{

Callers 1

NewSyncCommandFunction · 0.85

Calls 1

NewSharedFlagsFunction · 0.85

Tested by

no test coverage detected