Skip to content

Commit 4b24b4a

Browse files
committed
rename bin to cli
1 parent 5617d52 commit 4b24b4a

8 files changed

Lines changed: 9 additions & 8 deletions

File tree

docs/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Use the `-h` or `--help` flags with any of these to avoid making changes.
4848
TODO consolidate to one command with commit flag or dry run?
4949
TODO pass params like file names through for either command. For message and committing. The downside is for new files - even if git commit would pick them up by name, diff-index would not. You can also use whatever IDE to stage and still generate+commit with the CLI.
5050
TODO -c not just --cached but pass through as --cached.
51+
And use default behavior for if there is staged then use that for commit message - make it smart.
5152
-->
5253

5354
### Generate a message from changes and commit

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
"vscode:prepublish": "npm run compile",
2121
"build": "mkdir -p build && vsce package --out build/",
2222
"ext": "npm run build && code --install-extension $(ls -t build/* | head -n1) --force",
23-
"cli": "npm link",
23+
"cli": "npm run compile && npm link",
2424
"preversion": "npm run checks",
2525
"version": "npm run build",
2626
"postversion": "git push --follow-tags",
2727
"sb": "bin/reset_sandbox.sh"
2828
},
2929
"bin": {
30-
"acm": "out/bin/diffIndexGenerate.js",
31-
"gacm": "out/bin/diffIndexGenerateCommit.js",
32-
"auto_commit_msg_generate": "out/bin/generate.js"
30+
"acm": "out/cli/diffIndexGenerate.js",
31+
"gacm": "out/cli/diffIndexGenerateCommit.js",
32+
"auto_commit_msg_generate": "out/cli/generate.js"
3333
},
3434
"engines": {
3535
"node": ">=22",

shell/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
If you want to use the hook:
55

6-
1. Follow instructions to install the TS command globally as per [src/bin/README.md](/src/bin/README.md)
6+
1. Follow instructions to install the TS command globally as per [src/cli/README.md](/src/cli/README.md)
77
1. Install the pre-commit hook.
88
```sh
99
$ cp shell/acm-hook.sh YOUR_PROJECT/.hooks/pre-commit
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)