s3p 3.5.4 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,14 @@
1
1
  import &StandardImport, &Lib
2
2
 
3
+ wrapCommandWithArgsProcessing = (command) ->
4
+ (options, args) ->
5
+ mergeInto options, processArgsIntoOptions args
6
+ command options
7
+
3
8
  {}
4
9
  version: -> &package.version
5
10
 
6
- ls: (options) ->
11
+ ls: wrapCommandWithArgsProcessing (options, args) ->
7
12
  items = []
8
13
  options extract onItem, output, fromCli, verbose, raw, long as longForm
9
14
  output ?= (v) -> console.log v
@@ -30,10 +35,10 @@ import &StandardImport, &Lib
30
35
  if fromCli then if verbose then info else null
31
36
  else if verbose then merge info, {} items else items
32
37
 
33
- listBuckets: &lib/S3.listBuckets
34
- summarize: &S3P.summarize
35
- compare: &S3P.compare
36
- cp: &S3P.copy
37
- sync: &S3P.sync
38
- each: &S3Comprehensions.each
39
- map: &S3Comprehensions.map
38
+ listBuckets: wrapCommandWithArgsProcessing -> new &lib/S3().listBuckets()
39
+ summarize: wrapCommandWithArgsProcessing &S3P.summarize
40
+ compare: wrapCommandWithArgsProcessing &S3P.compare
41
+ cp: wrapCommandWithArgsProcessing &S3P.copy
42
+ sync: wrapCommandWithArgsProcessing &S3P.sync
43
+ each: wrapCommandWithArgsProcessing &S3Comprehensions.each
44
+ map: wrapCommandWithArgsProcessing &S3Comprehensions.map