()
| 240 | } |
| 241 | |
| 242 | func testPutCmd() *cobra.Command { |
| 243 | cmd := &cobra.Command{} |
| 244 | cmd.Flags().BoolP("recursive", "r", false, "Recursively upload directories") |
| 245 | cmd.Flags().IntP("workers", "w", 4, "Number of concurrent upload workers to use") |
| 246 | cmd.Flags().Int64P("chunksize", "c", 1<<24, "Chunk size to use (should be multiple of 4MiB)") |
| 247 | cmd.Flags().BoolP("debug", "d", false, "Print debug timing") |
| 248 | cmd.Flags().String("if-exists", putIfExistsOverwrite, "What to do when the destination file exists: overwrite, skip, or fail") |
| 249 | return cmd |
| 250 | } |
| 251 | |
| 252 | func testPutJSONCmd(stdout, stderr *bytes.Buffer) *cobra.Command { |
| 253 | cmd := testPutCmd() |
no outgoing calls
no test coverage detected