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.
- package/CHANGELOG.md +81 -0
- package/build/S3Parallel/Lib/LibMisc.js +1 -1
- package/build/S3Parallel/Lib/LibMisc.js.map +1 -1
- package/build/S3Parallel/Lib/LocalFileLister.js +4 -0
- package/build/S3Parallel/Lib/LocalFileLister.js.map +10 -0
- package/build/S3Parallel/Lib/S3.js +1 -1
- package/build/S3Parallel/Lib/S3.js.map +1 -1
- package/build/S3Parallel/Lib/index.js +1 -0
- package/build/S3Parallel/S3Comprehensions.js +1 -1
- package/build/S3Parallel/S3Comprehensions.js.map +1 -1
- package/build/S3Parallel/S3P.js +1 -1
- package/build/S3Parallel/S3P.js.map +1 -1
- package/build/S3Parallel/S3PCli.js +1 -1
- package/build/S3Parallel/S3PCli.js.map +1 -1
- package/build/S3Parallel/S3PCliCommands.js +1 -1
- package/build/S3Parallel/S3PCliCommands.js.map +1 -1
- package/package.json +17 -10
- package/source/S3Parallel/Lib/LibMisc.caf +86 -19
- package/source/S3Parallel/Lib/LocalFileLister.caf +99 -0
- package/source/S3Parallel/Lib/S3.caf +82 -43
- package/source/S3Parallel/S3Comprehensions.caf +14 -7
- package/source/S3Parallel/S3P.caf +8 -2
- package/source/S3Parallel/S3PCli.caf +19 -1
- package/source/S3Parallel/S3PCliCommands.caf +13 -8
|
@@ -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
|