()
| 72 | ` |
| 73 | |
| 74 | func 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 | |
| 93 | func NewSyncCommand() *cli.Command { |
| 94 | cmd := &cli.Command{ |
no test coverage detected