@gkalpak/aliases 0.10.8 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.10.8]
5
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
5
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
4
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
4
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
4
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
4
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
4
+ ### [Generated by: @gkalpak/aliases v0.11.1]
5
5
  ### Copy the following into '~/.ssh/config':
6
6
 
7
7
  IdentityFile ~/.ssh/id-rsa-gkalpak.ppk
@@ -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.10.8]');
5
+ console.log('""" [Generated by: @gkalpak/aliases v0.11.1]');
6
6
  console.log('""" Copy the following into \'~/.vimrc\':\n');
7
7
  console.log(readFileSync(`${__dirname}/../../lib/assets/vimrc.txt`, 'utf8').trim() + '\n');
@@ -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.10.8]
4
+ ### [Generated by: @gkalpak/aliases v0.11.1]
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.10.8]
17
+ ### [Generated by: @gkalpak/aliases v0.11.1]
18
18
  ### Copy the following into a root-owned, 600-mode '/etc/wsl.conf' file:
19
19
 
20
20
  [network]
package/bin/git/gstk.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {commandUtils} from '@gkalpak/cli-utils';
3
3
  import {isMain, onError} from '../../lib/utils.js';
4
4
  // eslint-disable-next-line max-len
5
- const cmd = 'git stash save --keep-index $*';
5
+ const cmd = 'git stash push --keep-index $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
8
  const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import {commandUtils} from '@gkalpak/cli-utils';
3
+ import {isMain, onError} from '../../lib/utils.js';
4
+ // eslint-disable-next-line max-len
5
+ const cmd = 'git stash push --message $1 $2*';
6
+ export default cmd;
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);
11
+ }
package/bin/misc/alv.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- console.log('@gkalpak/aliases v0.10.8');
2
+ console.log('@gkalpak/aliases v0.11.1');
package/lib/constants.js CHANGED
@@ -257,7 +257,8 @@ const ALIASES = {
257
257
 
258
258
  // STASH
259
259
  gst: new AliasDefault('git stash $*'),
260
- gstk: new AliasDefault('git stash save --keep-index $*'),
260
+ gstm: new AliasDefault('git stash push --message $1 $2*'),
261
+ gstk: new AliasDefault('git stash push --keep-index $*'),
261
262
  gstl: new AliasDefault('git stash list $*'),
262
263
  gstp: new AliasDefault('git stash pop --index $*'),
263
264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkalpak/aliases",
3
- "version": "0.10.8",
3
+ "version": "0.11.1",
4
4
  "description": "My global aliases.",
5
5
  "keywords": [
6
6
  "Utility"
@@ -116,6 +116,7 @@
116
116
  "gst": "./bin/git/gst.js",
117
117
  "gstk": "./bin/git/gstk.js",
118
118
  "gstl": "./bin/git/gstl.js",
119
+ "gstm": "./bin/git/gstm.js",
119
120
  "gstp": "./bin/git/gstp.js",
120
121
  "gsync": "./bin/git/gsync.js",
121
122
  "halp": "./bin/misc/halp.js",
@@ -194,7 +195,7 @@
194
195
  "dependencies": {
195
196
  "@gkalpak/cli-utils": "^0.1.10",
196
197
  "chalk": "^5.3.0",
197
- "inquirer": "^9.2.18",
198
+ "inquirer": "^9.2.20",
198
199
  "is-wsl": "^3.1.0"
199
200
  },
200
201
  "devDependencies": {