@gkalpak/aliases 0.9.3 → 0.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 +4 -4
- package/bin/aio/__a-builds-dir.js +5 -7
- package/bin/aio/aioall.js +5 -5
- package/bin/aio/aioatt.js +5 -5
- package/bin/aio/aiobd.js +5 -5
- package/bin/aio/aiord.js +5 -5
- package/bin/aio/aiorm.js +5 -5
- package/bin/config/cfgbash.js +3 -4
- package/bin/config/cfgbash.wsl.js +3 -4
- package/bin/config/cfggit.js +4 -5
- package/bin/config/cfggit.wsl.js +4 -5
- package/bin/config/cfgvim.js +5 -3
- package/bin/docker/dkrall.js +5 -5
- package/bin/docker/dkratt.js +5 -5
- package/bin/docker/dkrbd.js +5 -5
- package/bin/docker/dkrrd.js +5 -5
- package/bin/docker/dkrrm.js +5 -5
- package/bin/git/__g-pick-branch.js +5 -7
- package/bin/git/__g-pick-commit.js +5 -7
- package/bin/git/gaa.js +5 -5
- package/bin/git/gb.js +5 -5
- package/bin/git/gbc.js +5 -5
- package/bin/git/gbcm.js +5 -5
- package/bin/git/gbd.js +5 -5
- package/bin/git/gcl.js +5 -5
- package/bin/git/gcm.js +5 -5
- package/bin/git/gcma.js +5 -5
- package/bin/git/gcmane.js +5 -5
- package/bin/git/gcmf.js +5 -5
- package/bin/git/gcmfc.js +5 -5
- package/bin/git/gcmfs.js +5 -5
- package/bin/git/gcmi.js +5 -5
- package/bin/git/gcmia.js +5 -5
- package/bin/git/gcmiane.js +5 -5
- package/bin/git/gcmif.js +5 -5
- package/bin/git/gcmifc.js +5 -5
- package/bin/git/gcmifs.js +5 -5
- package/bin/git/gco.js +5 -5
- package/bin/git/gcoghpr-cleanup.js +5 -5
- package/bin/git/gcoghpr.js +5 -7
- package/bin/git/gcom.js +5 -5
- package/bin/git/gcopr.js +5 -5
- package/bin/git/gcp.js +5 -5
- package/bin/git/gcpa.js +5 -5
- package/bin/git/gcpc.js +5 -5
- package/bin/git/gcpx.js +5 -5
- package/bin/git/gcpxl.js +5 -5
- package/bin/git/gd.js +5 -5
- package/bin/git/gd1.js +5 -5
- package/bin/git/gdefb.js +5 -5
- package/bin/git/gdh.js +5 -5
- package/bin/git/gdn.js +5 -5
- package/bin/git/gdn1.js +5 -5
- package/bin/git/gdnh.js +5 -5
- package/bin/git/gl.js +5 -5
- package/bin/git/gl1.js +5 -5
- package/bin/git/gl1g.js +5 -5
- package/bin/git/gmt.js +5 -5
- package/bin/git/gngprh.js +5 -5
- package/bin/git/gngprm.js +5 -5
- package/bin/git/gp.js +5 -5
- package/bin/git/gp1.js +5 -5
- package/bin/git/gpf.js +5 -5
- package/bin/git/gpr.js +5 -5
- package/bin/git/gpro.js +5 -5
- package/bin/git/gprom.js +5 -5
- package/bin/git/gpru.js +5 -5
- package/bin/git/gprum.js +5 -5
- package/bin/git/grb.js +5 -5
- package/bin/git/grba.js +5 -5
- package/bin/git/grbc.js +5 -5
- package/bin/git/grbi.js +5 -5
- package/bin/git/grbia.js +5 -5
- package/bin/git/grbin.js +5 -5
- package/bin/git/grbm.js +5 -5
- package/bin/git/grs.js +5 -5
- package/bin/git/grs1.js +5 -5
- package/bin/git/gs.js +5 -5
- package/bin/git/gsh.js +5 -5
- package/bin/git/gshn.js +5 -5
- package/bin/git/gst.js +5 -5
- package/bin/git/gstk.js +5 -5
- package/bin/git/gstl.js +5 -5
- package/bin/git/gstp.js +5 -5
- package/bin/git/gsync.js +5 -5
- package/bin/misc/alv.js +1 -2
- package/bin/misc/halp.js +2 -2
- package/bin/misc/ll.darwin.js +5 -5
- package/bin/misc/ll.js +5 -5
- package/bin/misc/lla.darwin.js +5 -5
- package/bin/misc/lla.js +5 -5
- package/bin/misc/osv.darwin.js +5 -5
- package/bin/misc/osv.js +5 -5
- package/bin/misc/osv.win32.js +5 -5
- package/bin/misc/salfup.js +5 -5
- package/bin/node/nad.js +5 -5
- package/bin/node/naga.js +5 -5
- package/bin/node/nap.js +5 -5
- package/bin/node/niin.js +5 -5
- package/bin/node/nls.js +5 -5
- package/bin/node/nls1.js +5 -5
- package/bin/node/nlsg.js +5 -5
- package/bin/node/nlsg1.js +5 -5
- package/bin/node/nr.js +5 -5
- package/bin/node/nrd.js +5 -5
- package/bin/node/nrin.js +5 -5
- package/bin/node/nrp.js +5 -5
- package/bin/node/nrx.js +5 -5
- package/bin/node/ns.js +5 -5
- package/bin/node/nsin.js +5 -5
- package/bin/node/nsx.js +5 -5
- package/bin/node/nt.js +5 -5
- package/bin/node/ntin.js +5 -5
- package/bin/node/ntx.js +5 -5
- package/bin/node/nua.js +5 -5
- package/bin/node/nud.js +5 -5
- package/bin/node/nup.js +5 -5
- package/bin/node/nv.js +5 -5
- package/bin/node/nvls.js +5 -5
- package/bin/node/nvls.win32.js +5 -5
- package/bin/node/nvlsa.js +5 -5
- package/bin/node/nvlsa.win32.js +5 -5
- package/bin/node/nvmup.js +5 -5
- package/bin/node/nvmup.win32.js +5 -5
- package/bin/node/nvu.js +5 -7
- package/bin/node/srv.js +5 -5
- package/bin/node/srvw.js +5 -5
- package/bin/node/yad.js +5 -5
- package/bin/node/yaga.js +5 -5
- package/bin/node/yap.js +5 -5
- package/bin/node/yiin.js +5 -5
- package/bin/node/yls.js +5 -5
- package/bin/node/yls1.js +5 -5
- package/bin/node/ylsg.js +5 -5
- package/bin/node/ylsg1.js +5 -5
- package/bin/node/yr.js +5 -5
- package/bin/node/yrd.js +5 -5
- package/bin/node/yrin.js +5 -5
- package/bin/node/yrp.js +5 -5
- package/bin/node/yrx.js +5 -5
- package/bin/node/ys.js +5 -5
- package/bin/node/ysin.js +5 -5
- package/bin/node/ysx.js +5 -5
- package/bin/node/yt.js +5 -5
- package/bin/node/ytin.js +5 -5
- package/bin/node/ytx.js +5 -5
- package/bin/node/yua.js +5 -5
- package/bin/node/yud.js +5 -5
- package/bin/node/yup.js +5 -5
- package/lib/alias-scripts/a-builds-dir.js +65 -45
- package/lib/alias-scripts/g-pick-branch.js +44 -25
- package/lib/alias-scripts/g-pick-commit.js +44 -25
- package/lib/alias-scripts/gcoghpr.js +182 -195
- package/lib/alias-scripts/nvu.js +57 -49
- package/lib/alias.js +4 -5
- package/lib/constants.js +69 -49
- package/lib/helper.js +96 -88
- package/lib/utils.js +111 -60
- package/package.json +8 -6
- package/scripts/build.js +11 -10
- package/scripts/platformize-bin.js +7 -7
- package/scripts/test-pkg.js +14 -12
- package/bin/config/cfggit.win32.js +0 -21
package/bin/git/gcmifc.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git commit --fixup ${0:::__g-pick-commit --gkcu-returnOutput=1} $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcmifs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git commit --fixup :/$1 $2*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gco.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git checkout ${*:::__g-pick-branch --gkcu-returnOutput=1}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'node --eval "console.log(\'Clean up git branches starting with \\\'gcoghpr-\\\'.\'); const exec = child_process.execSync; exec(\'git branch\', {encoding: \'utf8\'}).split(\'\\n\').map(x => x.trim()).filter(x => x.startsWith(\'gcoghpr-\')).forEach(x => (console.log(\' Deleting \\\'\' + x + \'\\\'...\'), exec(\'git branch --delete --force \' + x)));" && node --eval "console.log(\'Clean up git remotes starting with \\\'gcoghpr-\\\'.\'); const exec = child_process.execSync; exec(\'git remote show\', {encoding: \'utf8\'}).split(\'\\n\').map(x => x.trim()).filter(x => x.startsWith(\'gcoghpr-\')).forEach(x => (console.log(\' Deleting \\\'\' + x + \'\\\'...\'), exec(\'git remote remove \' + x)));"';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcoghpr.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {main} from '../../lib/alias-scripts/gcoghpr.js';
|
|
4
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
5
|
+
export default 'Check out a GitHub pull request as a local branch.';
|
|
6
|
+
if (isMain(import.meta.url)) {
|
|
7
7
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
8
|
-
|
|
9
|
-
const {main} = require('../../lib/alias-scripts/gcoghpr');
|
|
10
8
|
main(args, config).catch(onError);
|
|
11
9
|
}
|
package/bin/git/gcom.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git checkout ${0:::(git show-ref --heads --quiet master && echo master) || (git show-ref --heads --quiet main && echo main) || echo unknown-branch} $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcopr.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git fetch upstream pull/$1/head && git checkout FETCH_HEAD';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git cherry-pick $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcpa.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git cherry-pick --abort';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcpc.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git cherry-pick --continue';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcpx.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'echo " Cherry-picking SHA: $1 " && echo "----------------------------------------------------------------" && echo " " && git checkout ${2:::__g-pick-branch --gkcu-returnOutput=1} && git pull --rebase origin ${2:::__g-pick-branch --gkcu-returnOutput=1} && git cherry-pick $1 && ngm-diff-wh origin/${2:::__g-pick-branch --gkcu-returnOutput=1} && (git log --decorate || true) && echo " " && echo "----------------------------------------------------------------" && echo " >>> (Don\'t forget to manually push the changes.) <<< "';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gcpxl.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'gcpx ${0:::git rev-parse HEAD} $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-diff-wh $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gd1.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-diff-wh HEAD~1 $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gdefb.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = '(git show-ref --heads --quiet master && echo master) || (git show-ref --heads --quiet main && echo main) || echo unknown-branch';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gdh.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-diff-wh HEAD $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gdn.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-diff-wh --name-only $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gdn1.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-diff-wh HEAD~1 --name-only $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gdnh.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-diff-wh HEAD --name-only $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gl.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git log --decorate $* || true';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gl1.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git log --decorate --oneline $* || true';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gl1g.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git log --decorate --oneline | grep $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gmt.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git mergetool';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gngprh.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-pr-merge $* --instructions';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gngprm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'ngm-pr-merge $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git push --verbose $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gp1.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git push --set-upstream --verbose $2* origin ${1:::git rev-parse --abbrev-ref HEAD}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gpf.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git push --force-with-lease --verbose $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gpr.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git pull --rebase $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gpro.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git pull --rebase origin ${*:::git rev-parse --abbrev-ref HEAD}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gprom.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git pull --rebase origin ${0:::(git show-ref --heads --quiet master && echo master) || (git show-ref --heads --quiet main && echo main) || echo unknown-branch} $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gpru.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git pull --rebase upstream ${*:::git rev-parse --abbrev-ref HEAD}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/gprum.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git pull --rebase upstream ${0:::(git show-ref --heads --quiet master && echo master) || (git show-ref --heads --quiet main && echo main) || echo unknown-branch} $*';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/grb.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git rebase ${*:::__g-pick-branch --gkcu-returnOutput=1}';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|
package/bin/git/grba.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import {commandUtils} from '@gkalpak/cli-utils';
|
|
3
|
+
import {isMain, onError} from '../../lib/utils.js';
|
|
3
4
|
// eslint-disable-next-line max-len
|
|
4
|
-
const cmd =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {onError} = require('../../lib/utils');
|
|
5
|
+
const cmd = 'git rebase --abort';
|
|
6
|
+
export default cmd;
|
|
7
|
+
if (isMain(import.meta.url)) {
|
|
8
8
|
const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
|
|
9
9
|
// eslint-disable-next-line quotes
|
|
10
10
|
commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
|