@gkalpak/aliases 0.14.1 → 0.14.3

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.
Files changed (162) hide show
  1. package/bin/aio/aioall.js +4 -3
  2. package/bin/aio/aioatt.js +4 -3
  3. package/bin/aio/aiobd.js +4 -3
  4. package/bin/aio/aiord.js +4 -3
  5. package/bin/aio/aiorm.js +4 -3
  6. package/bin/config/cfgbash.js +1 -1
  7. package/bin/config/cfgbash.wsl.js +1 -1
  8. package/bin/config/cfggit.js +1 -1
  9. package/bin/config/cfggit.win32.js +1 -1
  10. package/bin/config/cfggit.wsl.js +1 -1
  11. package/bin/config/cfggpg.js +1 -1
  12. package/bin/config/cfgssh.js +1 -1
  13. package/bin/config/cfgvim.js +1 -1
  14. package/bin/config/cfgwsl.js +4 -3
  15. package/bin/config/cfgwsl.wsl.js +2 -2
  16. package/bin/docker/dkrall.js +4 -3
  17. package/bin/docker/dkratt.js +4 -3
  18. package/bin/docker/dkrbd.js +4 -3
  19. package/bin/docker/dkrrd.js +4 -3
  20. package/bin/docker/dkrrm.js +4 -3
  21. package/bin/git/gaa.js +4 -3
  22. package/bin/git/gb.js +4 -3
  23. package/bin/git/gba.js +4 -3
  24. package/bin/git/gbc.js +4 -3
  25. package/bin/git/gbcd.js +4 -3
  26. package/bin/git/gbco.js +4 -3
  27. package/bin/git/gbd.js +4 -3
  28. package/bin/git/gbdio.js +4 -3
  29. package/bin/git/gbdr.js +4 -3
  30. package/bin/git/gcl.js +4 -3
  31. package/bin/git/gcm.js +4 -3
  32. package/bin/git/gcma.js +4 -3
  33. package/bin/git/gcmane.js +4 -3
  34. package/bin/git/gcmf.js +4 -3
  35. package/bin/git/gcmfc.js +4 -3
  36. package/bin/git/gcmfs.js +4 -3
  37. package/bin/git/gcmi.js +4 -3
  38. package/bin/git/gcmia.js +4 -3
  39. package/bin/git/gcmiane.js +4 -3
  40. package/bin/git/gcmif.js +4 -3
  41. package/bin/git/gcmifc.js +4 -3
  42. package/bin/git/gcmifs.js +4 -3
  43. package/bin/git/gco.js +4 -3
  44. package/bin/git/gcod.js +4 -3
  45. package/bin/git/gcoghpr-cleanup.js +4 -3
  46. package/bin/git/gcopr.js +4 -3
  47. package/bin/git/gcp.js +4 -3
  48. package/bin/git/gcpa.js +4 -3
  49. package/bin/git/gcpc.js +4 -3
  50. package/bin/git/gcpx.js +4 -3
  51. package/bin/git/gcpxl.js +4 -3
  52. package/bin/git/gd.js +4 -3
  53. package/bin/git/gd1.js +4 -3
  54. package/bin/git/gdefb.js +4 -3
  55. package/bin/git/gdh.js +4 -3
  56. package/bin/git/gdn.js +4 -3
  57. package/bin/git/gdn1.js +4 -3
  58. package/bin/git/gdnh.js +4 -3
  59. package/bin/git/gl.js +4 -3
  60. package/bin/git/gl1.js +4 -3
  61. package/bin/git/gl1g.js +4 -3
  62. package/bin/git/gmt.js +4 -3
  63. package/bin/git/gngprh.js +4 -3
  64. package/bin/git/gngprm.js +4 -3
  65. package/bin/git/gp.js +4 -3
  66. package/bin/git/gp1.js +4 -3
  67. package/bin/git/gpf.js +4 -3
  68. package/bin/git/gpr.js +4 -3
  69. package/bin/git/gpro.js +4 -3
  70. package/bin/git/gprod.js +4 -3
  71. package/bin/git/gpru.js +4 -3
  72. package/bin/git/gprud.js +4 -3
  73. package/bin/git/grb.js +4 -3
  74. package/bin/git/grba.js +4 -3
  75. package/bin/git/grbc.js +4 -3
  76. package/bin/git/grbd.js +4 -3
  77. package/bin/git/grbi.js +4 -3
  78. package/bin/git/grbia.js +4 -3
  79. package/bin/git/grbin.js +4 -3
  80. package/bin/git/grs.js +4 -3
  81. package/bin/git/grs1.js +4 -3
  82. package/bin/git/gs.js +4 -3
  83. package/bin/git/gsh.js +4 -3
  84. package/bin/git/gshg.js +4 -3
  85. package/bin/git/gshn.js +4 -3
  86. package/bin/git/gshng.js +4 -3
  87. package/bin/git/gst.js +4 -3
  88. package/bin/git/gstk.js +4 -3
  89. package/bin/git/gstl.js +4 -3
  90. package/bin/git/gstm.js +4 -3
  91. package/bin/git/gstp.js +4 -3
  92. package/bin/git/gsync.js +4 -3
  93. package/bin/misc/alv.js +1 -1
  94. package/bin/misc/ll.darwin.js +4 -3
  95. package/bin/misc/ll.js +4 -3
  96. package/bin/misc/lla.darwin.js +4 -3
  97. package/bin/misc/lla.js +4 -3
  98. package/bin/misc/osv.darwin.js +4 -3
  99. package/bin/misc/osv.js +4 -3
  100. package/bin/misc/osv.win32.js +4 -3
  101. package/bin/misc/salfup.js +4 -3
  102. package/bin/node/nad.js +4 -3
  103. package/bin/node/naga.js +4 -3
  104. package/bin/node/nap.js +4 -3
  105. package/bin/node/niin.js +4 -3
  106. package/bin/node/nls.js +4 -3
  107. package/bin/node/nls1.js +4 -3
  108. package/bin/node/nlsg.js +4 -3
  109. package/bin/node/nlsg1.js +4 -3
  110. package/bin/node/nr.js +4 -3
  111. package/bin/node/nrd.js +4 -3
  112. package/bin/node/nrin.js +4 -3
  113. package/bin/node/nrp.js +4 -3
  114. package/bin/node/nrx.js +4 -3
  115. package/bin/node/ns.js +4 -3
  116. package/bin/node/nsin.js +4 -3
  117. package/bin/node/nsx.js +4 -3
  118. package/bin/node/nt.js +4 -3
  119. package/bin/node/ntin.js +4 -3
  120. package/bin/node/ntx.js +4 -3
  121. package/bin/node/nua.js +4 -3
  122. package/bin/node/nud.js +4 -3
  123. package/bin/node/nup.js +4 -3
  124. package/bin/node/nv.js +4 -3
  125. package/bin/node/nvls.js +4 -3
  126. package/bin/node/nvls.win32.js +4 -3
  127. package/bin/node/nvlsa.js +4 -3
  128. package/bin/node/nvlsa.win32.js +4 -3
  129. package/bin/node/nvmup.js +4 -3
  130. package/bin/node/nvmup.win32.js +4 -3
  131. package/bin/node/srv.js +4 -3
  132. package/bin/node/srvw.js +4 -3
  133. package/bin/node/yad.js +4 -3
  134. package/bin/node/yaga.js +4 -3
  135. package/bin/node/yap.js +4 -3
  136. package/bin/node/yiin.js +4 -3
  137. package/bin/node/yls.js +4 -3
  138. package/bin/node/yls1.js +4 -3
  139. package/bin/node/ylsg.js +4 -3
  140. package/bin/node/ylsg1.js +4 -3
  141. package/bin/node/yr.js +4 -3
  142. package/bin/node/yrd.js +4 -3
  143. package/bin/node/yrin.js +4 -3
  144. package/bin/node/yrp.js +4 -3
  145. package/bin/node/yrx.js +4 -3
  146. package/bin/node/ys.js +4 -3
  147. package/bin/node/ysin.js +4 -3
  148. package/bin/node/ysx.js +4 -3
  149. package/bin/node/yt.js +4 -3
  150. package/bin/node/ytin.js +4 -3
  151. package/bin/node/ytx.js +4 -3
  152. package/bin/node/yua.js +4 -3
  153. package/bin/node/yud.js +4 -3
  154. package/bin/node/yup.js +4 -3
  155. package/lib/alias-scripts/g-pick-branch.js +4 -2
  156. package/lib/alias-scripts/g-pick-commit.js +4 -2
  157. package/lib/alias-scripts/gcoghpr.js +5 -2
  158. package/lib/alias-scripts/nvu.js +19 -17
  159. package/lib/alias.js +1 -2
  160. package/lib/constants.js +8 -4
  161. package/lib/helper.js +2 -2
  162. package/package.json +2 -2
package/bin/aio/aioall.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'aiorm && aiobd && aiord && aioatt';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/aio/aioatt.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'dkratt aio';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/aio/aiobd.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'yarn --cwd "${0:::__a-builds-dir}/dockerbuild/scripts-js" --frozen-lockfile --non-interactive install && yarn --cwd "${0:::__a-builds-dir}/dockerbuild/scripts-js" build && dkrbd aio-builds "${0:::__a-builds-dir}/dockerbuild" $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/aio/aiord.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'dkrrd aio aio-builds --dns 127.0.0.1 -p 8000:80 -p 4430:443 $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/aio/aiorm.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'dkrrm aio';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -2,7 +2,7 @@
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  /* eslint-disable max-len */
4
4
  console.log(stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.14.1]
5
+ ### [Generated by: @gkalpak/aliases v0.14.3]
6
6
  ### Copy the following into '~/.bashrc':
7
7
 
8
8
  # Set up prompt.
@@ -2,7 +2,7 @@
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  /* eslint-disable max-len */
4
4
  console.log(stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.14.1]
5
+ ### [Generated by: @gkalpak/aliases v0.14.3]
6
6
  ### Copy the following into '~/.bashrc':
7
7
 
8
8
  # Set up prompt.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.14.1]
4
+ ### [Generated by: @gkalpak/aliases v0.14.3]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign "true"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.14.1]
4
+ ### [Generated by: @gkalpak/aliases v0.14.3]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign "true"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.14.1]
4
+ ### [Generated by: @gkalpak/aliases v0.14.3]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign "true"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.14.1]
4
+ ### [Generated by: @gkalpak/aliases v0.14.3]
5
5
  ### Copy the following into '~/.gnupg/gpg-agent.conf':
6
6
 
7
7
  default-cache-ttl 86400
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.14.1]
4
+ ### [Generated by: @gkalpak/aliases v0.14.3]
5
5
  ### Copy the following into '~/.ssh/config':
6
6
 
7
7
  IdentityFile ~/.ssh/id-rsa-gkalpak.priv
@@ -2,6 +2,6 @@
2
2
  import {readFileSync} from 'node:fs';
3
3
  import {fileURLToPath} from 'node:url';
4
4
  const __dirname = fileURLToPath(new URL('.', import.meta.url));
5
- console.log('""" [Generated by: @gkalpak/aliases v0.14.1]');
5
+ console.log('""" [Generated by: @gkalpak/aliases v0.14.3]');
6
6
  console.log('""" Copy the following into \'~/.vimrc\':\n');
7
7
  console.log(readFileSync(`${__dirname}/../../lib/assets/vimrc.txt`, 'utf8').trim() + '\n');
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'node --print "\'This alias only works in WSL.\'"';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.14.1]
4
+ ### [Generated by: @gkalpak/aliases v0.14.3]
5
5
  ### Copy the following into a root-owned, 600-mode '/etc/resolv.conf' file:
6
6
 
7
7
  # Cloudflare
@@ -14,7 +14,7 @@ console.log(stripIndentation(`
14
14
 
15
15
  -----
16
16
 
17
- ### [Generated by: @gkalpak/aliases v0.14.1]
17
+ ### [Generated by: @gkalpak/aliases v0.14.3]
18
18
  ### Copy the following into a root-owned, 600-mode '/etc/wsl.conf' file:
19
19
 
20
20
  [network]
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'dkrrm $1 && dkrbd $2 $3 && dkrrd $1 $2 $4* && dkratt $1';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'docker exec -it $1 /bin/bash $2*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'docker build --tag $1 $3* $2';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'docker run -d --name $1 -p 4000:4000 -p 4200:4200 -p 4433:4433 -p 8080:8080 -p 9876:9876 $3* $2';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'docker stop $1 & docker rm $1 || true';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gaa.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git add --all $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gb.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git branch $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gba.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git branch --all $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gbc.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git checkout ${2:HEAD} -b $1 && git config branch.$1.remote origin && git config branch.$1.merge refs/heads/$1';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gbcd.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git checkout ${0:::gdefb} -b $1 && git config branch.$1.remote origin && git config branch.$1.merge refs/heads/$1';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gbco.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git fetch origin $1 && git checkout origin/$1 -b $1 && git config branch.$1.remote origin && git config branch.$1.merge refs/heads/$1';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gbd.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git branch --delete --force ${*:::__g-pick-branch --gkcu-returnOutput=1}';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gbdio.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git branch --delete --force ${1:::__g-pick-branch --gkcu-returnOutput=1} && git push --delete origin ${1:::__g-pick-branch --gkcu-returnOutput=1}';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gbdr.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git push --delete ${*:::__g-pick-branch --remote --gkcu-returnOutput=1}';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcl.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git clean --interactive "${0:::git rev-parse --show-toplevel}"';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcm.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --all $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcma.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --all --amend $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmane.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --all --amend --no-edit $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmf.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --all --fixup HEAD~${1:0} $2*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmfc.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --all --fixup ${0:::__g-pick-commit --gkcu-returnOutput=1} $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmfs.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --all --fixup :/$1 $2*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmi.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmia.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --amend $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --amend --no-edit $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmif.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --fixup HEAD~${1:0} $2*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmifc.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --fixup ${0:::__g-pick-commit --gkcu-returnOutput=1} $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcmifs.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git commit --fixup :/$1 $2*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gco.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git checkout ${*:::__g-pick-branch --gkcu-returnOutput=1}';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcod.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git checkout ${0:::gdefb} $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
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
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcopr.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git fetch upstream pull/$1/head && git checkout FETCH_HEAD';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }
package/bin/git/gcp.js CHANGED
@@ -5,7 +5,8 @@ import {isMain, onError} from '../../lib/utils.js';
5
5
  const cmd = 'git cherry-pick $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
- const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
9
- // eslint-disable-next-line quotes
10
- commandUtils.run(cmd, args, Object.assign({"sapVersion":2}, config)).catch(onError);
8
+ const {args, config: runtimeConfig} = commandUtils.preprocessArgs(process.argv.slice(2));
9
+ // eslint-disable-next-line max-len, quotes
10
+ const config = Object.assign({sapVersion: 2}, {}, runtimeConfig);
11
+ commandUtils.run(cmd, args, config).catch(onError);
11
12
  }