@emulsify/cli 1.9.0 → 1.10.0
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/README.md +20 -13
- package/dist/node_modules/.package-lock.json +37 -24
- package/dist/node_modules/@types/node/README.md +5 -6
- package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/dist/node_modules/@types/node/assert.d.ts +955 -45
- package/dist/node_modules/@types/node/async_hooks.d.ts +391 -87
- package/dist/node_modules/@types/node/buffer.d.ts +2210 -17
- package/dist/node_modules/@types/node/child_process.d.ts +1051 -189
- package/dist/node_modules/@types/node/cluster.d.ts +421 -143
- package/dist/node_modules/@types/node/console.d.ts +359 -49
- package/dist/node_modules/@types/node/constants.d.ts +3 -3
- package/dist/node_modules/@types/node/crypto.d.ts +3528 -291
- package/dist/node_modules/@types/node/dgram.d.ts +446 -30
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/dist/node_modules/@types/node/dns.d.ts +588 -240
- package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
- package/dist/node_modules/@types/node/domain.d.ts +159 -16
- package/dist/node_modules/@types/node/events.d.ts +890 -41
- package/dist/node_modules/@types/node/fs/promises.d.ts +980 -369
- package/dist/node_modules/@types/node/fs.d.ts +2599 -869
- package/dist/node_modules/@types/node/globals.d.ts +374 -727
- package/dist/node_modules/@types/node/globals.global.d.ts +1 -1
- package/dist/node_modules/@types/node/http.d.ts +1459 -132
- package/dist/node_modules/@types/node/http2.d.ts +1333 -123
- package/dist/node_modules/@types/node/https.d.ts +289 -13
- package/dist/node_modules/@types/node/index.d.ts +37 -46
- package/dist/node_modules/@types/node/inspector.d.ts +367 -671
- package/dist/node_modules/@types/node/module.d.ts +273 -14
- package/dist/node_modules/@types/node/net.d.ts +741 -66
- package/dist/node_modules/@types/node/os.d.ts +275 -23
- package/dist/node_modules/@types/node/package.json +95 -110
- package/dist/node_modules/@types/node/path.d.ts +27 -4
- package/dist/node_modules/@types/node/perf_hooks.d.ts +756 -125
- package/dist/node_modules/@types/node/process.d.ts +1429 -127
- package/dist/node_modules/@types/node/punycode.d.ts +65 -26
- package/dist/node_modules/@types/node/querystring.d.ts +121 -9
- package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/dist/node_modules/@types/node/readline.d.ts +405 -49
- package/dist/node_modules/@types/node/repl.d.ts +99 -73
- package/dist/node_modules/@types/node/sea.d.ts +153 -0
- package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
- package/dist/node_modules/@types/node/stream.d.ts +1462 -273
- package/dist/node_modules/@types/node/string_decoder.d.ts +59 -2
- package/dist/node_modules/@types/node/test.d.ts +1719 -0
- package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/dist/node_modules/@types/node/timers.d.ts +233 -12
- package/dist/node_modules/@types/node/tls.d.ts +540 -189
- package/dist/node_modules/@types/node/trace_events.d.ts +143 -10
- package/dist/node_modules/@types/node/tty.d.ts +156 -17
- package/dist/node_modules/@types/node/url.d.ts +812 -47
- package/dist/node_modules/@types/node/util.d.ts +2159 -145
- package/dist/node_modules/@types/node/v8.d.ts +693 -74
- package/dist/node_modules/@types/node/vm.d.ts +813 -44
- package/dist/node_modules/@types/node/wasi.d.ts +121 -28
- package/dist/node_modules/@types/node/worker_threads.d.ts +514 -61
- package/dist/node_modules/@types/node/zlib.d.ts +220 -54
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +5 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +10 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +5 -5
- package/dist/node_modules/commander/Readme.md +10 -8
- package/dist/node_modules/commander/esm.mjs +1 -1
- package/dist/node_modules/commander/lib/argument.js +9 -5
- package/dist/node_modules/commander/lib/command.js +406 -196
- package/dist/node_modules/commander/lib/error.js +0 -4
- package/dist/node_modules/commander/lib/help.js +101 -38
- package/dist/node_modules/commander/lib/option.js +11 -8
- package/dist/node_modules/commander/lib/suggestSimilar.js +5 -4
- package/dist/node_modules/commander/package.json +23 -19
- package/dist/node_modules/commander/typings/index.d.ts +110 -40
- package/dist/node_modules/debug/package.json +4 -3
- package/dist/node_modules/debug/src/browser.js +3 -1
- package/dist/node_modules/debug/src/node.js +2 -2
- package/dist/node_modules/fast-uri/.gitattributes +2 -0
- package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
- package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
- package/dist/node_modules/fast-uri/.taprc +3 -0
- package/dist/node_modules/fast-uri/LICENSE +30 -0
- package/dist/node_modules/fast-uri/README.md +125 -0
- package/dist/node_modules/fast-uri/benchmark.js +105 -0
- package/dist/node_modules/fast-uri/index.js +309 -0
- package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
- package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
- package/dist/node_modules/fast-uri/lib/utils.js +242 -0
- package/dist/node_modules/fast-uri/package.json +39 -0
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
- package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
- package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
- package/dist/node_modules/fast-uri/test/util.test.js +24 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
- package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/dist/node_modules/fs-extra/README.md +32 -2
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +3 -11
- package/dist/node_modules/fs-extra/lib/copy/copy.js +120 -178
- package/dist/node_modules/fs-extra/lib/copy/index.js +1 -1
- package/dist/node_modules/fs-extra/lib/ensure/file.js +31 -34
- package/dist/node_modules/fs-extra/lib/ensure/link.js +27 -27
- package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +57 -55
- package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +16 -13
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +29 -44
- package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/dist/node_modules/fs-extra/lib/fs/index.js +29 -17
- package/dist/node_modules/fs-extra/lib/move/index.js +1 -1
- package/dist/node_modules/fs-extra/lib/move/move-sync.js +2 -1
- package/dist/node_modules/fs-extra/lib/move/move.js +38 -54
- package/dist/node_modules/fs-extra/lib/output-file/index.js +10 -19
- package/dist/node_modules/fs-extra/lib/remove/index.js +2 -7
- package/dist/node_modules/fs-extra/lib/util/stat.js +46 -42
- package/dist/node_modules/fs-extra/lib/util/utimes.js +21 -11
- package/dist/node_modules/fs-extra/package.json +11 -7
- package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
- package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
- package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
- package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/api.d.ts +3 -13
- package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-error.d.ts +3 -2
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-list-log-summary.d.ts +2 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-pull.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/completion-detection.plugin.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/index.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/progress-monitor-plugin.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/simple-git-plugin.d.ts +10 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/FileStatusSummary.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/StatusSummary.d.ts +2 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor-chain.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/git-executor.d.ts +3 -4
- package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clone.d.ts +3 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/config.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/fetch.d.ts +2 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/remote.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/task.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/types/index.d.ts +64 -5
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/exit-codes.d.ts +1 -0
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-parser.d.ts +2 -2
- package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/util.d.ts +3 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/errors.d.ts +0 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/index.d.ts +2 -1
- package/dist/node_modules/simple-git/{typings → dist/typings}/response.d.ts +68 -25
- package/dist/node_modules/simple-git/{typings → dist/typings}/simple-git.d.ts +493 -110
- package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
- package/dist/node_modules/simple-git/package.json +32 -35
- package/dist/node_modules/simple-git/promise.js +14 -4
- package/dist/node_modules/simple-git/readme.md +372 -389
- package/dist/node_modules/undici-types/README.md +6 -0
- package/dist/node_modules/undici-types/agent.d.ts +31 -0
- package/dist/node_modules/undici-types/api.d.ts +43 -0
- package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/dist/node_modules/undici-types/cache.d.ts +36 -0
- package/dist/node_modules/undici-types/client.d.ts +97 -0
- package/dist/node_modules/undici-types/connector.d.ts +34 -0
- package/dist/node_modules/undici-types/content-type.d.ts +21 -0
- package/dist/node_modules/undici-types/cookies.d.ts +28 -0
- package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/dist/node_modules/undici-types/errors.d.ts +128 -0
- package/dist/node_modules/undici-types/fetch.d.ts +209 -0
- package/dist/node_modules/undici-types/file.d.ts +39 -0
- package/dist/node_modules/undici-types/filereader.d.ts +54 -0
- package/dist/node_modules/undici-types/formdata.d.ts +108 -0
- package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
- package/dist/node_modules/undici-types/handlers.d.ts +9 -0
- package/dist/node_modules/undici-types/header.d.ts +4 -0
- package/dist/node_modules/undici-types/index.d.ts +63 -0
- package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
- package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
- package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/dist/node_modules/undici-types/package.json +55 -0
- package/dist/node_modules/undici-types/patch.d.ts +71 -0
- package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/dist/node_modules/undici-types/pool.d.ts +28 -0
- package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/dist/node_modules/undici-types/readable.d.ts +61 -0
- package/dist/node_modules/undici-types/webidl.d.ts +220 -0
- package/dist/node_modules/undici-types/websocket.d.ts +131 -0
- package/dist/package-lock.json +10146 -0
- package/dist/package.json +23 -23
- package/dist/schemas/variant.json +5 -21
- package/package.json +24 -24
- package/dist/node_modules/@types/node/ts4.8/assert.d.ts +0 -130
- package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -237
- package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
- package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +0 -682
- package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +0 -300
- package/dist/node_modules/@types/node/ts4.8/console.d.ts +0 -142
- package/dist/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1287
- package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +0 -180
- package/dist/node_modules/@types/node/ts4.8/dns.d.ts +0 -516
- package/dist/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
- package/dist/node_modules/@types/node/ts4.8/events.d.ts +0 -82
- package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -634
- package/dist/node_modules/@types/node/ts4.8/fs.d.ts +0 -2587
- package/dist/node_modules/@types/node/ts4.8/globals.d.ts +0 -763
- package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/dist/node_modules/@types/node/ts4.8/http.d.ts +0 -580
- package/dist/node_modules/@types/node/ts4.8/http2.d.ts +0 -1208
- package/dist/node_modules/@types/node/ts4.8/https.d.ts +0 -274
- package/dist/node_modules/@types/node/ts4.8/index.d.ts +0 -53
- package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3050
- package/dist/node_modules/@types/node/ts4.8/module.d.ts +0 -56
- package/dist/node_modules/@types/node/ts4.8/net.d.ts +0 -324
- package/dist/node_modules/@types/node/ts4.8/os.d.ts +0 -243
- package/dist/node_modules/@types/node/ts4.8/path.d.ts +0 -168
- package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
- package/dist/node_modules/@types/node/ts4.8/process.d.ts +0 -452
- package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
- package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +0 -41
- package/dist/node_modules/@types/node/ts4.8/readline.d.ts +0 -184
- package/dist/node_modules/@types/node/ts4.8/repl.d.ts +0 -404
- package/dist/node_modules/@types/node/ts4.8/stream.d.ts +0 -518
- package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
- package/dist/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
- package/dist/node_modules/@types/node/ts4.8/tls.d.ts +0 -866
- package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
- package/dist/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
- package/dist/node_modules/@types/node/ts4.8/url.d.ts +0 -187
- package/dist/node_modules/@types/node/ts4.8/util.d.ts +0 -278
- package/dist/node_modules/@types/node/ts4.8/v8.d.ts +0 -189
- package/dist/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
- package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +0 -88
- package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
- package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
- package/dist/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
- package/dist/node_modules/simple-git/CHANGELOG.md +0 -529
- package/dist/node_modules/simple-git/LICENSE +0 -20
- package/dist/node_modules/simple-git/promise.d.ts +0 -46
- package/dist/node_modules/simple-git/src/git.js +0 -700
- package/dist/node_modules/simple-git/src/index.js +0 -7
- package/dist/node_modules/simple-git/src/lib/api.js +0 -26
- package/dist/node_modules/simple-git/src/lib/api.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js +0 -21
- package/dist/node_modules/simple-git/src/lib/errors/git-construct-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-error.js +0 -37
- package/dist/node_modules/simple-git/src/lib/errors/git-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +0 -6
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js +0 -14
- package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js +0 -36
- package/dist/node_modules/simple-git/src/lib/errors/git-response-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js +0 -19
- package/dist/node_modules/simple-git/src/lib/errors/task-configuration-error.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +0 -25
- package/dist/node_modules/simple-git/src/lib/git-factory.js +0 -45
- package/dist/node_modules/simple-git/src/lib/git-factory.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/git-logger.js +0 -101
- package/dist/node_modules/simple-git/src/lib/git-logger.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js +0 -29
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch-delete.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js +0 -18
- package/dist/node_modules/simple-git/src/lib/parsers/parse-branch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js +0 -53
- package/dist/node_modules/simple-git/src/lib/parsers/parse-commit.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.d.ts +0 -2
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js +0 -74
- package/dist/node_modules/simple-git/src/lib/parsers/parse-diff-summary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js +0 -32
- package/dist/node_modules/simple-git/src/lib/parsers/parse-fetch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js +0 -35
- package/dist/node_modules/simple-git/src/lib/parsers/parse-list-log-summary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js +0 -39
- package/dist/node_modules/simple-git/src/lib/parsers/parse-merge.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js +0 -14
- package/dist/node_modules/simple-git/src/lib/parsers/parse-move.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js +0 -42
- package/dist/node_modules/simple-git/src/lib/parsers/parse-pull.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js +0 -58
- package/dist/node_modules/simple-git/src/lib/parsers/parse-push.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js +0 -33
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-messages.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js +0 -41
- package/dist/node_modules/simple-git/src/lib/parsers/parse-remote-objects.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js +0 -15
- package/dist/node_modules/simple-git/src/lib/plugins/command-config-prefixing-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +0 -80
- package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js +0 -39
- package/dist/node_modules/simple-git/src/lib/plugins/error-detection.plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/index.js +0 -21
- package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.d.ts +0 -6
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js +0 -28
- package/dist/node_modules/simple-git/src/lib/plugins/plugin-store.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js +0 -45
- package/dist/node_modules/simple-git/src/lib/plugins/progress-monitor-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js +0 -3
- package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js +0 -15
- package/dist/node_modules/simple-git/src/lib/plugins/spawn-options-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js +0 -37
- package/dist/node_modules/simple-git/src/lib/plugins/timout-plugin.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js +0 -31
- package/dist/node_modules/simple-git/src/lib/responses/BranchDeleteSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.d.ts +0 -10
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js +0 -26
- package/dist/node_modules/simple-git/src/lib/responses/BranchSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js +0 -13
- package/dist/node_modules/simple-git/src/lib/responses/CheckIgnore.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js +0 -28
- package/dist/node_modules/simple-git/src/lib/responses/CleanSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js +0 -89
- package/dist/node_modules/simple-git/src/lib/responses/ConfigList.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js +0 -16
- package/dist/node_modules/simple-git/src/lib/responses/DiffSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js +0 -18
- package/dist/node_modules/simple-git/src/lib/responses/FileStatusSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js +0 -30
- package/dist/node_modules/simple-git/src/lib/responses/GetRemoteSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js +0 -36
- package/dist/node_modules/simple-git/src/lib/responses/InitSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js +0 -35
- package/dist/node_modules/simple-git/src/lib/responses/MergeSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.d.ts +0 -12
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js +0 -22
- package/dist/node_modules/simple-git/src/lib/responses/PullSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +0 -128
- package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/responses/TagList.js +0 -56
- package/dist/node_modules/simple-git/src/lib/responses/TagList.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +0 -173
- package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/git-executor.js +0 -21
- package/dist/node_modules/simple-git/src/lib/runners/git-executor.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js +0 -133
- package/dist/node_modules/simple-git/src/lib/runners/promise-wrapped.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/scheduler.js +0 -48
- package/dist/node_modules/simple-git/src/lib/runners/scheduler.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js +0 -64
- package/dist/node_modules/simple-git/src/lib/runners/tasks-pending-queue.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js +0 -80
- package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/task-callback.js +0 -39
- package/dist/node_modules/simple-git/src/lib/task-callback.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js +0 -9
- package/dist/node_modules/simple-git/src/lib/tasks/apply-patch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/branch.js +0 -76
- package/dist/node_modules/simple-git/src/lib/tasks/branch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/change-working-directory.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js +0 -13
- package/dist/node_modules/simple-git/src/lib/tasks/check-ignore.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js +0 -61
- package/dist/node_modules/simple-git/src/lib/tasks/check-is-repo.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/clean.js +0 -85
- package/dist/node_modules/simple-git/src/lib/tasks/clean.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/clone.js +0 -22
- package/dist/node_modules/simple-git/src/lib/tasks/clone.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/commit.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/commit.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/commit.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/config.js +0 -73
- package/dist/node_modules/simple-git/src/lib/tasks/config.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/diff.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/diff.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/diff.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/fetch.js +0 -17
- package/dist/node_modules/simple-git/src/lib/tasks/fetch.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js +0 -76
- package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/hash-object.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/init.js +0 -23
- package/dist/node_modules/simple-git/src/lib/tasks/init.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/log.js +0 -109
- package/dist/node_modules/simple-git/src/lib/tasks/log.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/merge.js +0 -24
- package/dist/node_modules/simple-git/src/lib/tasks/merge.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/move.js +0 -14
- package/dist/node_modules/simple-git/src/lib/tasks/move.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/pull.js +0 -19
- package/dist/node_modules/simple-git/src/lib/tasks/pull.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/push.js +0 -29
- package/dist/node_modules/simple-git/src/lib/tasks/push.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/remote.js +0 -42
- package/dist/node_modules/simple-git/src/lib/tasks/remote.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/reset.js +0 -38
- package/dist/node_modules/simple-git/src/lib/tasks/reset.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.d.ts +0 -3
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js +0 -16
- package/dist/node_modules/simple-git/src/lib/tasks/stash-list.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/status.js +0 -15
- package/dist/node_modules/simple-git/src/lib/tasks/status.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js +0 -25
- package/dist/node_modules/simple-git/src/lib/tasks/sub-module.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/tag.js +0 -45
- package/dist/node_modules/simple-git/src/lib/tasks/tag.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/tasks/task.js +0 -52
- package/dist/node_modules/simple-git/src/lib/tasks/task.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/handlers.js +0 -3
- package/dist/node_modules/simple-git/src/lib/types/handlers.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/index.js +0 -15
- package/dist/node_modules/simple-git/src/lib/types/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/types/tasks.js +0 -3
- package/dist/node_modules/simple-git/src/lib/types/tasks.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js +0 -47
- package/dist/node_modules/simple-git/src/lib/utils/argument-filters.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js +0 -14
- package/dist/node_modules/simple-git/src/lib/utils/exit-codes.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js +0 -14
- package/dist/node_modules/simple-git/src/lib/utils/git-output-streams.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/index.js +0 -21
- package/dist/node_modules/simple-git/src/lib/utils/index.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/line-parser.js +0 -52
- package/dist/node_modules/simple-git/src/lib/utils/line-parser.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js +0 -16
- package/dist/node_modules/simple-git/src/lib/utils/simple-git-options.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/task-options.js +0 -58
- package/dist/node_modules/simple-git/src/lib/utils/task-options.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/task-parser.js +0 -24
- package/dist/node_modules/simple-git/src/lib/utils/task-parser.js.map +0 -1
- package/dist/node_modules/simple-git/src/lib/utils/util.js +0 -146
- package/dist/node_modules/simple-git/src/lib/utils/util.js.map +0 -1
- package/dist/node_modules/simple-git/typings/types.d.ts +0 -14
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-construct-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/git-response-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/errors/task-configuration-error.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/git-logger.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-branch-delete.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-commit.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-fetch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-merge.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-move.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-push.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-messages.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/parsers/parse-remote-objects.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/command-config-prefixing-plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/error-detection.plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/plugins/spawn-options-plugin.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/BranchDeleteSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CheckIgnore.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/CleanSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/ConfigList.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/DiffSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/GetRemoteSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/InitSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/MergeSummary.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/responses/TagList.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/promise-wrapped.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/scheduler.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/runners/tasks-pending-queue.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/simple-git-api.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/task-callback.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/apply-patch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/branch.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/change-working-directory.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-ignore.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/check-is-repo.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/clean.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/grep.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/hash-object.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/init.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/merge.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/move.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/pull.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/push.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/reset.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/status.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/sub-module.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/tasks/tag.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/handlers.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/types/tasks.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/argument-filters.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/git-output-streams.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/index.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/simple-git-options.d.ts +0 -0
- /package/dist/node_modules/simple-git/{src → dist/src}/lib/utils/task-options.d.ts +0 -0
|
@@ -1,700 +0,0 @@
|
|
|
1
|
-
const {GitExecutor} = require('./lib/runners/git-executor');
|
|
2
|
-
const {SimpleGitApi} = require('./lib/simple-git-api');
|
|
3
|
-
|
|
4
|
-
const {Scheduler} = require('./lib/runners/scheduler');
|
|
5
|
-
const {GitLogger} = require('./lib/git-logger');
|
|
6
|
-
const {configurationErrorTask} = require('./lib/tasks/task');
|
|
7
|
-
const {
|
|
8
|
-
asArray,
|
|
9
|
-
filterArray,
|
|
10
|
-
filterPrimitives,
|
|
11
|
-
filterString,
|
|
12
|
-
filterStringOrStringArray,
|
|
13
|
-
filterType,
|
|
14
|
-
getTrailingOptions,
|
|
15
|
-
trailingFunctionArgument,
|
|
16
|
-
trailingOptionsArgument
|
|
17
|
-
} = require('./lib/utils');
|
|
18
|
-
const {applyPatchTask} = require('./lib/tasks/apply-patch')
|
|
19
|
-
const {branchTask, branchLocalTask, deleteBranchesTask, deleteBranchTask} = require('./lib/tasks/branch');
|
|
20
|
-
const {checkIgnoreTask} = require('./lib/tasks/check-ignore');
|
|
21
|
-
const {checkIsRepoTask} = require('./lib/tasks/check-is-repo');
|
|
22
|
-
const {cloneTask, cloneMirrorTask} = require('./lib/tasks/clone');
|
|
23
|
-
const {cleanWithOptionsTask, isCleanOptionsArray} = require('./lib/tasks/clean');
|
|
24
|
-
const {commitTask} = require('./lib/tasks/commit');
|
|
25
|
-
const {diffSummaryTask} = require('./lib/tasks/diff');
|
|
26
|
-
const {fetchTask} = require('./lib/tasks/fetch');
|
|
27
|
-
const {moveTask} = require("./lib/tasks/move");
|
|
28
|
-
const {pullTask} = require('./lib/tasks/pull');
|
|
29
|
-
const {pushTagsTask} = require('./lib/tasks/push');
|
|
30
|
-
const {addRemoteTask, getRemotesTask, listRemotesTask, remoteTask, removeRemoteTask} = require('./lib/tasks/remote');
|
|
31
|
-
const {getResetMode, resetTask} = require('./lib/tasks/reset');
|
|
32
|
-
const {stashListTask} = require('./lib/tasks/stash-list');
|
|
33
|
-
const {addSubModuleTask, initSubModuleTask, subModuleTask, updateSubModuleTask} = require('./lib/tasks/sub-module');
|
|
34
|
-
const {addAnnotatedTagTask, addTagTask, tagListTask} = require('./lib/tasks/tag');
|
|
35
|
-
const {straightThroughBufferTask, straightThroughStringTask} = require('./lib/tasks/task');
|
|
36
|
-
|
|
37
|
-
function Git (options, plugins) {
|
|
38
|
-
this._executor = new GitExecutor(
|
|
39
|
-
options.binary, options.baseDir,
|
|
40
|
-
new Scheduler(options.maxConcurrentProcesses), plugins,
|
|
41
|
-
);
|
|
42
|
-
this._logger = new GitLogger();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
(Git.prototype = Object.create(SimpleGitApi.prototype)).constructor = Git;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Logging utility for printing out info or error messages to the user
|
|
49
|
-
* @type {GitLogger}
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
Git.prototype._logger = null;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Sets the path to a custom git binary, should either be `git` when there is an installation of git available on
|
|
56
|
-
* the system path, or a fully qualified path to the executable.
|
|
57
|
-
*
|
|
58
|
-
* @param {string} command
|
|
59
|
-
* @returns {Git}
|
|
60
|
-
*/
|
|
61
|
-
Git.prototype.customBinary = function (command) {
|
|
62
|
-
this._executor.binary = command;
|
|
63
|
-
return this;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Sets an environment variable for the spawned child process, either supply both a name and value as strings or
|
|
68
|
-
* a single object to entirely replace the current environment variables.
|
|
69
|
-
*
|
|
70
|
-
* @param {string|Object} name
|
|
71
|
-
* @param {string} [value]
|
|
72
|
-
* @returns {Git}
|
|
73
|
-
*/
|
|
74
|
-
Git.prototype.env = function (name, value) {
|
|
75
|
-
if (arguments.length === 1 && typeof name === 'object') {
|
|
76
|
-
this._executor.env = name;
|
|
77
|
-
} else {
|
|
78
|
-
(this._executor.env = this._executor.env || {})[name] = value;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return this;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* List the stash(s) of the local repo
|
|
86
|
-
*/
|
|
87
|
-
Git.prototype.stashList = function (options) {
|
|
88
|
-
return this._runTask(
|
|
89
|
-
stashListTask(
|
|
90
|
-
trailingOptionsArgument(arguments) || {},
|
|
91
|
-
filterArray(options) && options || []
|
|
92
|
-
),
|
|
93
|
-
trailingFunctionArgument(arguments),
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
function createCloneTask (api, task, repoPath, localPath) {
|
|
98
|
-
if (typeof repoPath !== 'string') {
|
|
99
|
-
return configurationErrorTask(`git.${ api }() requires a string 'repoPath'`);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return task(repoPath, filterType(localPath, filterString), getTrailingOptions(arguments));
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Clone a git repo
|
|
108
|
-
*/
|
|
109
|
-
Git.prototype.clone = function () {
|
|
110
|
-
return this._runTask(
|
|
111
|
-
createCloneTask('clone', cloneTask, ...arguments),
|
|
112
|
-
trailingFunctionArgument(arguments),
|
|
113
|
-
);
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Mirror a git repo
|
|
118
|
-
*/
|
|
119
|
-
Git.prototype.mirror = function () {
|
|
120
|
-
return this._runTask(
|
|
121
|
-
createCloneTask('mirror', cloneMirrorTask, ...arguments),
|
|
122
|
-
trailingFunctionArgument(arguments),
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Moves one or more files to a new destination.
|
|
128
|
-
*
|
|
129
|
-
* @see https://git-scm.com/docs/git-mv
|
|
130
|
-
*
|
|
131
|
-
* @param {string|string[]} from
|
|
132
|
-
* @param {string} to
|
|
133
|
-
*/
|
|
134
|
-
Git.prototype.mv = function (from, to) {
|
|
135
|
-
return this._runTask(moveTask(from, to), trailingFunctionArgument(arguments));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Internally uses pull and tags to get the list of tags then checks out the latest tag.
|
|
140
|
-
*
|
|
141
|
-
* @param {Function} [then]
|
|
142
|
-
*/
|
|
143
|
-
Git.prototype.checkoutLatestTag = function (then) {
|
|
144
|
-
var git = this;
|
|
145
|
-
return this.pull(function () {
|
|
146
|
-
git.tags(function (err, tags) {
|
|
147
|
-
git.checkout(tags.latest, then);
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Commits changes in the current working directory - when specific file paths are supplied, only changes on those
|
|
154
|
-
* files will be committed.
|
|
155
|
-
*
|
|
156
|
-
* @param {string|string[]} message
|
|
157
|
-
* @param {string|string[]} [files]
|
|
158
|
-
* @param {Object} [options]
|
|
159
|
-
* @param {Function} [then]
|
|
160
|
-
*/
|
|
161
|
-
Git.prototype.commit = function (message, files, options, then) {
|
|
162
|
-
const next = trailingFunctionArgument(arguments);
|
|
163
|
-
const messages = [];
|
|
164
|
-
|
|
165
|
-
if (filterStringOrStringArray(message)) {
|
|
166
|
-
messages.push(...asArray(message));
|
|
167
|
-
} else {
|
|
168
|
-
console.warn('simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3');
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return this._runTask(
|
|
172
|
-
commitTask(
|
|
173
|
-
messages,
|
|
174
|
-
asArray(filterType(files, filterStringOrStringArray, [])),
|
|
175
|
-
[...filterType(options, filterArray, []), ...getTrailingOptions(arguments, 0, true)]
|
|
176
|
-
),
|
|
177
|
-
next
|
|
178
|
-
);
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Pull the updated contents of the current repo
|
|
183
|
-
*/
|
|
184
|
-
Git.prototype.pull = function (remote, branch, options, then) {
|
|
185
|
-
return this._runTask(
|
|
186
|
-
pullTask(filterType(remote, filterString), filterType(branch, filterString), getTrailingOptions(arguments)),
|
|
187
|
-
trailingFunctionArgument(arguments),
|
|
188
|
-
);
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Fetch the updated contents of the current repo.
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* .fetch('upstream', 'master') // fetches from master on remote named upstream
|
|
196
|
-
* .fetch(function () {}) // runs fetch against default remote and branch and calls function
|
|
197
|
-
*
|
|
198
|
-
* @param {string} [remote]
|
|
199
|
-
* @param {string} [branch]
|
|
200
|
-
*/
|
|
201
|
-
Git.prototype.fetch = function (remote, branch) {
|
|
202
|
-
return this._runTask(
|
|
203
|
-
fetchTask(filterType(remote, filterString), filterType(branch, filterString), getTrailingOptions(arguments)),
|
|
204
|
-
trailingFunctionArgument(arguments),
|
|
205
|
-
);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Disables/enables the use of the console for printing warnings and errors, by default messages are not shown in
|
|
210
|
-
* a production environment.
|
|
211
|
-
*
|
|
212
|
-
* @param {boolean} silence
|
|
213
|
-
* @returns {Git}
|
|
214
|
-
*/
|
|
215
|
-
Git.prototype.silent = function (silence) {
|
|
216
|
-
console.warn('simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3');
|
|
217
|
-
this._logger.silent(!!silence);
|
|
218
|
-
return this;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* List all tags. When using git 2.7.0 or above, include an options object with `"--sort": "property-name"` to
|
|
223
|
-
* sort the tags by that property instead of using the default semantic versioning sort.
|
|
224
|
-
*
|
|
225
|
-
* Note, supplying this option when it is not supported by your Git version will cause the operation to fail.
|
|
226
|
-
*
|
|
227
|
-
* @param {Object} [options]
|
|
228
|
-
* @param {Function} [then]
|
|
229
|
-
*/
|
|
230
|
-
Git.prototype.tags = function (options, then) {
|
|
231
|
-
return this._runTask(
|
|
232
|
-
tagListTask(getTrailingOptions(arguments)),
|
|
233
|
-
trailingFunctionArgument(arguments),
|
|
234
|
-
);
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Rebases the current working copy. Options can be supplied either as an array of string parameters
|
|
239
|
-
* to be sent to the `git rebase` command, or a standard options object.
|
|
240
|
-
*/
|
|
241
|
-
Git.prototype.rebase = function () {
|
|
242
|
-
return this._runTask(
|
|
243
|
-
straightThroughStringTask(['rebase', ...getTrailingOptions(arguments)]),
|
|
244
|
-
trailingFunctionArgument(arguments)
|
|
245
|
-
);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Reset a repo
|
|
250
|
-
*/
|
|
251
|
-
Git.prototype.reset = function (mode) {
|
|
252
|
-
return this._runTask(
|
|
253
|
-
resetTask(getResetMode(mode), getTrailingOptions(arguments)),
|
|
254
|
-
trailingFunctionArgument(arguments),
|
|
255
|
-
);
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Revert one or more commits in the local working copy
|
|
260
|
-
*/
|
|
261
|
-
Git.prototype.revert = function (commit) {
|
|
262
|
-
const next = trailingFunctionArgument(arguments);
|
|
263
|
-
|
|
264
|
-
if (typeof commit !== 'string') {
|
|
265
|
-
return this._runTask(
|
|
266
|
-
configurationErrorTask('Commit must be a string'),
|
|
267
|
-
next,
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
return this._runTask(
|
|
272
|
-
straightThroughStringTask(['revert', ...getTrailingOptions(arguments, 0, true), commit]),
|
|
273
|
-
next
|
|
274
|
-
);
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Add a lightweight tag to the head of the current branch
|
|
279
|
-
*/
|
|
280
|
-
Git.prototype.addTag = function (name) {
|
|
281
|
-
const task = (typeof name === 'string')
|
|
282
|
-
? addTagTask(name)
|
|
283
|
-
: configurationErrorTask('Git.addTag requires a tag name');
|
|
284
|
-
|
|
285
|
-
return this._runTask(task, trailingFunctionArgument(arguments));
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Add an annotated tag to the head of the current branch
|
|
290
|
-
*/
|
|
291
|
-
Git.prototype.addAnnotatedTag = function (tagName, tagMessage) {
|
|
292
|
-
return this._runTask(
|
|
293
|
-
addAnnotatedTagTask(tagName, tagMessage),
|
|
294
|
-
trailingFunctionArgument(arguments),
|
|
295
|
-
);
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Check out a tag or revision, any number of additional arguments can be passed to the `git checkout` command
|
|
300
|
-
* by supplying either a string or array of strings as the first argument.
|
|
301
|
-
*/
|
|
302
|
-
Git.prototype.checkout = function () {
|
|
303
|
-
const commands = ['checkout', ...getTrailingOptions(arguments, true)];
|
|
304
|
-
return this._runTask(
|
|
305
|
-
straightThroughStringTask(commands),
|
|
306
|
-
trailingFunctionArgument(arguments),
|
|
307
|
-
);
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Check out a remote branch
|
|
312
|
-
*
|
|
313
|
-
* @param {string} branchName name of branch
|
|
314
|
-
* @param {string} startPoint (e.g origin/development)
|
|
315
|
-
* @param {Function} [then]
|
|
316
|
-
*/
|
|
317
|
-
Git.prototype.checkoutBranch = function (branchName, startPoint, then) {
|
|
318
|
-
return this.checkout(['-b', branchName, startPoint], trailingFunctionArgument(arguments));
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Check out a local branch
|
|
323
|
-
*/
|
|
324
|
-
Git.prototype.checkoutLocalBranch = function (branchName, then) {
|
|
325
|
-
return this.checkout(['-b', branchName], trailingFunctionArgument(arguments));
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Delete a local branch
|
|
330
|
-
*/
|
|
331
|
-
Git.prototype.deleteLocalBranch = function (branchName, forceDelete, then) {
|
|
332
|
-
return this._runTask(
|
|
333
|
-
deleteBranchTask(branchName, typeof forceDelete === "boolean" ? forceDelete : false),
|
|
334
|
-
trailingFunctionArgument(arguments),
|
|
335
|
-
);
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Delete one or more local branches
|
|
340
|
-
*/
|
|
341
|
-
Git.prototype.deleteLocalBranches = function (branchNames, forceDelete, then) {
|
|
342
|
-
return this._runTask(
|
|
343
|
-
deleteBranchesTask(branchNames, typeof forceDelete === "boolean" ? forceDelete : false),
|
|
344
|
-
trailingFunctionArgument(arguments),
|
|
345
|
-
);
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* List all branches
|
|
350
|
-
*
|
|
351
|
-
* @param {Object | string[]} [options]
|
|
352
|
-
* @param {Function} [then]
|
|
353
|
-
*/
|
|
354
|
-
Git.prototype.branch = function (options, then) {
|
|
355
|
-
return this._runTask(
|
|
356
|
-
branchTask(getTrailingOptions(arguments)),
|
|
357
|
-
trailingFunctionArgument(arguments),
|
|
358
|
-
);
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Return list of local branches
|
|
363
|
-
*
|
|
364
|
-
* @param {Function} [then]
|
|
365
|
-
*/
|
|
366
|
-
Git.prototype.branchLocal = function (then) {
|
|
367
|
-
return this._runTask(
|
|
368
|
-
branchLocalTask(),
|
|
369
|
-
trailingFunctionArgument(arguments),
|
|
370
|
-
);
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Executes any command against the git binary.
|
|
375
|
-
*/
|
|
376
|
-
Git.prototype.raw = function (commands) {
|
|
377
|
-
const createRestCommands = !Array.isArray(commands);
|
|
378
|
-
const command = [].slice.call(createRestCommands ? arguments : commands, 0);
|
|
379
|
-
|
|
380
|
-
for (let i = 0; i < command.length && createRestCommands; i++) {
|
|
381
|
-
if (!filterPrimitives(command[i])) {
|
|
382
|
-
command.splice(i, command.length - i);
|
|
383
|
-
break;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
command.push(
|
|
388
|
-
...getTrailingOptions(arguments, 0, true),
|
|
389
|
-
);
|
|
390
|
-
|
|
391
|
-
var next = trailingFunctionArgument(arguments);
|
|
392
|
-
|
|
393
|
-
if (!command.length) {
|
|
394
|
-
return this._runTask(
|
|
395
|
-
configurationErrorTask('Raw: must supply one or more command to execute'),
|
|
396
|
-
next,
|
|
397
|
-
);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
return this._runTask(straightThroughStringTask(command), next);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
Git.prototype.submoduleAdd = function (repo, path, then) {
|
|
404
|
-
return this._runTask(
|
|
405
|
-
addSubModuleTask(repo, path),
|
|
406
|
-
trailingFunctionArgument(arguments),
|
|
407
|
-
);
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
Git.prototype.submoduleUpdate = function (args, then) {
|
|
411
|
-
return this._runTask(
|
|
412
|
-
updateSubModuleTask(getTrailingOptions(arguments, true)),
|
|
413
|
-
trailingFunctionArgument(arguments),
|
|
414
|
-
);
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
Git.prototype.submoduleInit = function (args, then) {
|
|
418
|
-
return this._runTask(
|
|
419
|
-
initSubModuleTask(getTrailingOptions(arguments, true)),
|
|
420
|
-
trailingFunctionArgument(arguments),
|
|
421
|
-
);
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
Git.prototype.subModule = function (options, then) {
|
|
425
|
-
return this._runTask(
|
|
426
|
-
subModuleTask(getTrailingOptions(arguments)),
|
|
427
|
-
trailingFunctionArgument(arguments),
|
|
428
|
-
);
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
Git.prototype.listRemote = function () {
|
|
432
|
-
return this._runTask(
|
|
433
|
-
listRemotesTask(getTrailingOptions(arguments)),
|
|
434
|
-
trailingFunctionArgument(arguments),
|
|
435
|
-
);
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Adds a remote to the list of remotes.
|
|
440
|
-
*/
|
|
441
|
-
Git.prototype.addRemote = function (remoteName, remoteRepo, then) {
|
|
442
|
-
return this._runTask(
|
|
443
|
-
addRemoteTask(remoteName, remoteRepo, getTrailingOptions(arguments)),
|
|
444
|
-
trailingFunctionArgument(arguments),
|
|
445
|
-
);
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Removes an entry by name from the list of remotes.
|
|
450
|
-
*/
|
|
451
|
-
Git.prototype.removeRemote = function (remoteName, then) {
|
|
452
|
-
return this._runTask(
|
|
453
|
-
removeRemoteTask(remoteName),
|
|
454
|
-
trailingFunctionArgument(arguments),
|
|
455
|
-
);
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Gets the currently available remotes, setting the optional verbose argument to true includes additional
|
|
460
|
-
* detail on the remotes themselves.
|
|
461
|
-
*/
|
|
462
|
-
Git.prototype.getRemotes = function (verbose, then) {
|
|
463
|
-
return this._runTask(
|
|
464
|
-
getRemotesTask(verbose === true),
|
|
465
|
-
trailingFunctionArgument(arguments),
|
|
466
|
-
);
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* Call any `git remote` function with arguments passed as an array of strings.
|
|
471
|
-
*
|
|
472
|
-
* @param {string[]} options
|
|
473
|
-
* @param {Function} [then]
|
|
474
|
-
*/
|
|
475
|
-
Git.prototype.remote = function (options, then) {
|
|
476
|
-
return this._runTask(
|
|
477
|
-
remoteTask(getTrailingOptions(arguments)),
|
|
478
|
-
trailingFunctionArgument(arguments),
|
|
479
|
-
);
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* Call any `git tag` function with arguments passed as an array of strings.
|
|
484
|
-
*
|
|
485
|
-
* @param {string[]} options
|
|
486
|
-
* @param {Function} [then]
|
|
487
|
-
*/
|
|
488
|
-
Git.prototype.tag = function (options, then) {
|
|
489
|
-
const command = getTrailingOptions(arguments);
|
|
490
|
-
|
|
491
|
-
if (command[0] !== 'tag') {
|
|
492
|
-
command.unshift('tag');
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
return this._runTask(
|
|
496
|
-
straightThroughStringTask(command),
|
|
497
|
-
trailingFunctionArgument(arguments)
|
|
498
|
-
);
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Updates repository server info
|
|
503
|
-
*
|
|
504
|
-
* @param {Function} [then]
|
|
505
|
-
*/
|
|
506
|
-
Git.prototype.updateServerInfo = function (then) {
|
|
507
|
-
return this._runTask(
|
|
508
|
-
straightThroughStringTask(['update-server-info']),
|
|
509
|
-
trailingFunctionArgument(arguments),
|
|
510
|
-
);
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Pushes the current tag changes to a remote which can be either a URL or named remote. When not specified uses the
|
|
515
|
-
* default configured remote spec.
|
|
516
|
-
*
|
|
517
|
-
* @param {string} [remote]
|
|
518
|
-
* @param {Function} [then]
|
|
519
|
-
*/
|
|
520
|
-
Git.prototype.pushTags = function (remote, then) {
|
|
521
|
-
const task = pushTagsTask({remote: filterType(remote, filterString)}, getTrailingOptions(arguments));
|
|
522
|
-
|
|
523
|
-
return this._runTask(task, trailingFunctionArgument(arguments));
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Removes the named files from source control.
|
|
528
|
-
*/
|
|
529
|
-
Git.prototype.rm = function (files) {
|
|
530
|
-
return this._runTask(
|
|
531
|
-
straightThroughStringTask(['rm', '-f', ...asArray(files)]),
|
|
532
|
-
trailingFunctionArgument(arguments)
|
|
533
|
-
);
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Removes the named files from source control but keeps them on disk rather than deleting them entirely. To
|
|
538
|
-
* completely remove the files, use `rm`.
|
|
539
|
-
*
|
|
540
|
-
* @param {string|string[]} files
|
|
541
|
-
*/
|
|
542
|
-
Git.prototype.rmKeepLocal = function (files) {
|
|
543
|
-
return this._runTask(
|
|
544
|
-
straightThroughStringTask(['rm', '--cached', ...asArray(files)]),
|
|
545
|
-
trailingFunctionArgument(arguments)
|
|
546
|
-
);
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* Returns a list of objects in a tree based on commit hash. Passing in an object hash returns the object's content,
|
|
551
|
-
* size, and type.
|
|
552
|
-
*
|
|
553
|
-
* Passing "-p" will instruct cat-file to determine the object type, and display its formatted contents.
|
|
554
|
-
*
|
|
555
|
-
* @param {string[]} [options]
|
|
556
|
-
* @param {Function} [then]
|
|
557
|
-
*/
|
|
558
|
-
Git.prototype.catFile = function (options, then) {
|
|
559
|
-
return this._catFile('utf-8', arguments);
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
Git.prototype.binaryCatFile = function () {
|
|
563
|
-
return this._catFile('buffer', arguments);
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
Git.prototype._catFile = function (format, args) {
|
|
567
|
-
var handler = trailingFunctionArgument(args);
|
|
568
|
-
var command = ['cat-file'];
|
|
569
|
-
var options = args[0];
|
|
570
|
-
|
|
571
|
-
if (typeof options === 'string') {
|
|
572
|
-
return this._runTask(
|
|
573
|
-
configurationErrorTask('Git.catFile: options must be supplied as an array of strings'),
|
|
574
|
-
handler,
|
|
575
|
-
);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
if (Array.isArray(options)) {
|
|
579
|
-
command.push.apply(command, options);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
const task = format === 'buffer'
|
|
583
|
-
? straightThroughBufferTask(command)
|
|
584
|
-
: straightThroughStringTask(command);
|
|
585
|
-
|
|
586
|
-
return this._runTask(task, handler);
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
Git.prototype.diff = function (options, then) {
|
|
590
|
-
const command = ['diff', ...getTrailingOptions(arguments)];
|
|
591
|
-
|
|
592
|
-
if (typeof options === 'string') {
|
|
593
|
-
command.splice(1, 0, options);
|
|
594
|
-
this._logger.warn('Git#diff: supplying options as a single string is now deprecated, switch to an array of strings');
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
return this._runTask(
|
|
598
|
-
straightThroughStringTask(command),
|
|
599
|
-
trailingFunctionArgument(arguments),
|
|
600
|
-
);
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
Git.prototype.diffSummary = function () {
|
|
604
|
-
return this._runTask(
|
|
605
|
-
diffSummaryTask(getTrailingOptions(arguments, 1)),
|
|
606
|
-
trailingFunctionArgument(arguments),
|
|
607
|
-
);
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
Git.prototype.applyPatch = function (patches) {
|
|
611
|
-
const task = !filterStringOrStringArray(patches)
|
|
612
|
-
? configurationErrorTask(`git.applyPatch requires one or more string patches as the first argument`)
|
|
613
|
-
: applyPatchTask(asArray(patches), getTrailingOptions([].slice.call(arguments, 1)));
|
|
614
|
-
|
|
615
|
-
return this._runTask(
|
|
616
|
-
task,
|
|
617
|
-
trailingFunctionArgument(arguments),
|
|
618
|
-
);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
Git.prototype.revparse = function () {
|
|
622
|
-
const commands = ['rev-parse', ...getTrailingOptions(arguments, true)];
|
|
623
|
-
return this._runTask(
|
|
624
|
-
straightThroughStringTask(commands, true),
|
|
625
|
-
trailingFunctionArgument(arguments),
|
|
626
|
-
);
|
|
627
|
-
};
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Show various types of objects, for example the file at a certain commit
|
|
631
|
-
*
|
|
632
|
-
* @param {string[]} [options]
|
|
633
|
-
* @param {Function} [then]
|
|
634
|
-
*/
|
|
635
|
-
Git.prototype.show = function (options, then) {
|
|
636
|
-
return this._runTask(
|
|
637
|
-
straightThroughStringTask(['show', ...getTrailingOptions(arguments, 1)]),
|
|
638
|
-
trailingFunctionArgument(arguments)
|
|
639
|
-
);
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
*/
|
|
644
|
-
Git.prototype.clean = function (mode, options, then) {
|
|
645
|
-
const usingCleanOptionsArray = isCleanOptionsArray(mode);
|
|
646
|
-
const cleanMode = usingCleanOptionsArray && mode.join('') || filterType(mode, filterString) || '';
|
|
647
|
-
const customArgs = getTrailingOptions([].slice.call(arguments, usingCleanOptionsArray ? 1 : 0));
|
|
648
|
-
|
|
649
|
-
return this._runTask(
|
|
650
|
-
cleanWithOptionsTask(cleanMode, customArgs),
|
|
651
|
-
trailingFunctionArgument(arguments),
|
|
652
|
-
);
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
Git.prototype.exec = function (then) {
|
|
656
|
-
const task = {
|
|
657
|
-
commands: [],
|
|
658
|
-
format: 'utf-8',
|
|
659
|
-
parser () {
|
|
660
|
-
if (typeof then === 'function') {
|
|
661
|
-
then();
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
return this._runTask(task);
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Clears the queue of pending commands and returns the wrapper instance for chaining.
|
|
671
|
-
*
|
|
672
|
-
* @returns {Git}
|
|
673
|
-
*/
|
|
674
|
-
Git.prototype.clearQueue = function () {
|
|
675
|
-
// TODO:
|
|
676
|
-
// this._executor.clear();
|
|
677
|
-
return this;
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Check if a pathname or pathnames are excluded by .gitignore
|
|
682
|
-
*
|
|
683
|
-
* @param {string|string[]} pathnames
|
|
684
|
-
* @param {Function} [then]
|
|
685
|
-
*/
|
|
686
|
-
Git.prototype.checkIgnore = function (pathnames, then) {
|
|
687
|
-
return this._runTask(
|
|
688
|
-
checkIgnoreTask(asArray((filterType(pathnames, filterStringOrStringArray, [])))),
|
|
689
|
-
trailingFunctionArgument(arguments),
|
|
690
|
-
);
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
Git.prototype.checkIsRepo = function (checkType, then) {
|
|
694
|
-
return this._runTask(
|
|
695
|
-
checkIsRepoTask(filterType(checkType, filterString)),
|
|
696
|
-
trailingFunctionArgument(arguments),
|
|
697
|
-
);
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
module.exports = Git;
|