()
| 227 | } |
| 228 | |
| 229 | func 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 | |
| 265 | func NewCopyCommand() *cli.Command { |
| 266 | cmd := &cli.Command{ |
no test coverage detected