Skip to content

Commit fceec3b

Browse files
committed
change structure of shell dir
1 parent bee90fb commit fceec3b

8 files changed

Lines changed: 25 additions & 99 deletions

File tree

shell/README-old.md

Lines changed: 0 additions & 73 deletions
This file was deleted.

shell/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11

22
# Shell
33

4+
See [acm-hook.sh](acm-hook.sh).
5+
6+
A CLI script that bypasses using VS Code or an extension.
7+
It will get output from Git, send it to Node CLI entry-point tool and print
8+
it. This can be used as part of Git commit message hook flow (pre-commit hook).
9+
10+
11+
## Setup
12+
413
If you want to use the hook:
514

615
1. Follow instructions to install the TS command globally as per [src/cli/README.md](/src/cli/README.md)
@@ -9,3 +18,8 @@ If you want to use the hook:
918
$ cp shell/acm-hook.sh YOUR_PROJECT/.hooks/pre-commit
1019
$ chmod +x YOUR_PROJECT/.hooks/pre-commit
1120
```
21+
22+
## Debugging
23+
24+
Optionally add a `-p` debug flag to print without writing to a file. This
25+
makes it easy to debug the script outside a Git commit hook flow.

shell/acm-hook.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
#!/usr/bin/env bash
22
# CLI test for autofill hook.
33
#
4-
# This script is *not* ready to be used in other projects. See shell/README.md
5-
# for dev notes.
6-
#
7-
# This is a pure CLI script that bypasses using VS Code or an extension.
8-
# It will get output from Git, send it to Node CLI entry-point tool and print
9-
# it. This can be used as part of Git commit message hook flow (pre-commit hook).
10-
#
11-
# Optionally add a `-d` debug flag to print without writing to a file. This
12-
# makes it easy to debug the script outside a Git commit hook flow.
13-
# ./autofill-hook.sh -p
14-
#
154
# See shell/README.md doc.
165
set -e
176

shell/acm.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

shell/archive/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Shell
2+
3+
Bash scripts around this project, to be used instead of as a VS Code extension.
4+
5+
## Samples
6+
7+
Archive of shell scripts for reference. These are used in the early development of the project but are not actively used.
8+
9+
- [count-files.sh](count-files.sh)
10+
- [sample.sh](sample.sh)
11+
- [simple-hook.sh](simple-hook.sh)
File renamed without changes.

0 commit comments

Comments
 (0)