gitsu-cli 1.0.4 → 1.0.6

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.
@@ -39,6 +39,9 @@ jobs:
39
39
  steps:
40
40
  - name: Checkout
41
41
  uses: actions/checkout@v4
42
+ with:
43
+ fetch-depth: 0
44
+ persist-credentials: false
42
45
 
43
46
  - name: Install Dependencies
44
47
  run: npm install
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.0.6](https://github.com/jamieweavis/gitsu/compare/v1.0.5...v1.0.6) (2025-03-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * version number being out of sync ([62d368e](https://github.com/jamieweavis/gitsu/commit/62d368ede1b487d24a2085b4984884fdc479bcac))
7
+
8
+ ## [1.0.5](https://github.com/jamieweavis/gitsu/compare/v1.0.4...v1.0.5) (2025-03-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * improve app description ([5016374](https://github.com/jamieweavis/gitsu/commit/5016374e422875fde42859da6386bec62bd57673))
14
+
1
15
  ## [1.0.4](https://github.com/jamieweavis/gitsu/compare/v1.0.3...v1.0.4) (2025-03-16)
2
16
 
3
17
 
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # gitsu
2
2
 
3
- > 🥷 Command line util for quickly & easily switching git users
3
+ > 🥷 Command line util for quickly & easily switching git identities
4
4
 
5
5
  [![build](https://github.com/jamieweavis/gitsu/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/jamieweavis/gitsu/actions)
6
6
  [![downloads](https://img.shields.io/npm/dt/gitsu-cli.svg)](https://npmjs.com/package/gitsu-cli)
7
- [![version](https://img.shields.io/github/release/jamieweavis/gitsu.svg)](https://github.com/jamieweavis/gitsu/releases)
7
+ [![version](https://img.shields.io/npm/v/gitsu-cli.svg)](https://github.com/jamieweavis/gitsu/releases)
8
8
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jamieweavis/gitsu/blob/main/LICENSE)
9
9
 
10
10
  <img width=678 alt="Screenshot" src="./.github/screenshot.png">
@@ -24,12 +24,14 @@ gitsu
24
24
 
25
25
  List users stored in your `~/.gitsurc` config
26
26
  ```sh
27
- gitsu --list (or -l)
27
+ gitsu --list
28
+ gitsu -l
28
29
  ```
29
30
 
30
31
  Open your `~/.gitsurc` config for editing in your default editor
31
32
  ```sh
32
- gitsu --edit (or -e)
33
+ gitsu --edit
34
+ gitsu -e
33
35
  ```
34
36
 
35
37
  ## Building
@@ -61,8 +63,25 @@ Unlink the local package from your global npm modules
61
63
  npm unlink gitsu-cli -g
62
64
  ```
63
65
 
66
+ ## Config
67
+
68
+ When you run `gitsu` for the first time, a `.gitsurc` file is created in your home directory. This file is used to store your git identities.
69
+
70
+ ```json
71
+ [
72
+ { "name": "John", "email": "john.doe@gmail.com" },
73
+ { "name": "John Doe", "email": "john.doe@corporate.com" },
74
+ { "name": "Johnny", "email": "johnny@startup.io" }
75
+ ]
76
+
77
+ ```
78
+
64
79
  ## Built With
65
80
 
66
81
  - [Node.js](https://github.com/nodejs/node)
67
82
  - [TypeScript](https://github.com/microsoft/TypeScript)
68
83
  - [Commander.js](https://github.com/tj/commander.js)
84
+
85
+ ## License
86
+
87
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
package/lib/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gitsu-cli",
3
- "version": "1.0.3",
4
- "description": "Command line util for quickly & easily switching git users",
3
+ "version": "1.0.5",
4
+ "description": "Command line util for quickly & easily switching git identities",
5
5
  "author": "Jamie Weavis",
6
6
  "homepage": "https://github.com/jamieweavis/gitsu#readme",
7
7
  "license": "MIT",
package/lib/src/app.js CHANGED
@@ -10,7 +10,7 @@ const edit_1 = __importDefault(require("./commands/edit"));
10
10
  const init_1 = __importDefault(require("./commands/init"));
11
11
  const list_1 = __importDefault(require("./commands/list"));
12
12
  const bootstrap = () => {
13
- commander_1.program.description('Command line util for quickly & easily switching git users');
13
+ commander_1.program.description('Command line util for quickly & easily switching git identities');
14
14
  commander_1.program.version(package_json_1.version);
15
15
  commander_1.program.option('-e, --edit', 'edit ~/.gitsurc with your EDITOR');
16
16
  commander_1.program.option('-l, --list', 'list users stored in ~/.gitsurc');
@@ -25,7 +25,7 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
25
25
  return (0, choice_1.formatChoice)({ name, email });
26
26
  }
27
27
  catch (error) {
28
- console.error(`${log_symbols_1.default.error} ${chalk_1.default.red('Failed to fetch current git user')}`, error);
28
+ console.error(`${log_symbols_1.default.error} ${chalk_1.default.red('Failed to fetch current git identity')}`, error);
29
29
  return '';
30
30
  }
31
31
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gitsu-cli",
3
- "version": "1.0.4",
4
- "description": "Command line util for quickly & easily switching git users",
3
+ "version": "1.0.6",
4
+ "description": "Command line util for quickly & easily switching git identities",
5
5
  "author": "Jamie Weavis",
6
6
  "homepage": "https://github.com/jamieweavis/gitsu#readme",
7
7
  "license": "MIT",
package/src/app.ts CHANGED
@@ -9,7 +9,7 @@ import list from './commands/list';
9
9
 
10
10
  const bootstrap = () => {
11
11
  program.description(
12
- 'Command line util for quickly & easily switching git users',
12
+ 'Command line util for quickly & easily switching git identities',
13
13
  );
14
14
  program.version(version);
15
15
  program.option('-e, --edit', 'edit ~/.gitsurc with your EDITOR');
@@ -15,7 +15,7 @@ export default async (): Promise<string> => {
15
15
  return formatChoice({ name, email });
16
16
  } catch (error) {
17
17
  console.error(
18
- `${logSymbols.error} ${chalk.red('Failed to fetch current git user')}`,
18
+ `${logSymbols.error} ${chalk.red('Failed to fetch current git identity')}`,
19
19
  error,
20
20
  );
21
21
  return '';