You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shell/README.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,15 @@ Bash scripts around this project, to be used instead of as a VS Code extension.
4
4
5
5
Note: All the scripts in this directory are named with dashes and not underscores, to match the Git hook filenames convention.
6
6
7
+
<!--
8
+
9
+
Approaches
10
+
11
+
- Make installable via repo with cp or npm link (better with esbuild for support of any module not just amd and system)
12
+
- Or with GH URL for repo
13
+
- Or with binary which is more effort and not needed for everyone
14
+
15
+
-->
7
16
8
17
## Samples
9
18
@@ -14,12 +23,12 @@ Archive of shell scripts for reference. These are used in the early development
14
23
-[simple-hook.sh](simple-hook.sh)
15
24
16
25
17
-
## Autofill scripts
26
+
## acm scripts
18
27
19
28
These are shell scripts to integrate with the JS scripts in this project, as an alternative to using, VS Code so I can use it any terminal and in other IDEs with their terminals. And if I stop using VS Code completely I can keep using the core at least in a terminal.
20
29
21
-
-[autofill-hook.sh](autofill-hook.sh)
22
-
-[autofill.sh](autofill.sh)
30
+
-[acm-hook.sh](acm-hook.sh)
31
+
-[acm.sh](acm.sh)
23
32
24
33
They are not complete but work as a POC for using the core logic outside project outside of VS Code as Git hook.
25
34
@@ -36,22 +45,24 @@ But, if you don't use it as an actual hook, there is an alternative flow that do
36
45
Sample output:
37
46
38
47
```console
39
-
$ ./shell/autofill.sh
48
+
$ ./shell/acm.sh
40
49
chore: update settings.json
41
-
$ ./shell/autofill.sh
50
+
$ ./shell/acm.sh
42
51
update 11 files
43
52
```
44
53
45
54
Use it with Git. This uses the tool to generate a message and pass it as the Git commit message, but forcing edit mode so you can override it.
46
55
47
56
```sh
48
-
$ git commit --edit -m "$(shell/autofill.sh)"
57
+
$ git commit --edit -m "$(shell/acm.sh)"
49
58
```
50
59
60
+
This can be done easier using the bin and alias steps below.
61
+
51
62
Move the script to a `bin` executables directory so you can run it from anywhere.
52
63
53
64
```sh
54
-
$ cp autofill.sh /usr/local/bin
65
+
$ cp acm.sh /usr/local/bin
55
66
```
56
67
57
68
TODO:
@@ -67,7 +78,7 @@ Set this up in git config aliases as `c` or something. If this was in a _bin_ di
0 commit comments