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: docs/development/cli.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
1
# CLI Development
2
2
> Maintaining code around the CLI tool
3
3
4
-
The code is in [src/cli/](/src/cli). The CLI commands are built using steps set in [package.json](/package.json) - see the `cli` command and `bin` section.
5
-
4
+
The code is in [src/cli/](/src/cli). The CLI commands are built using steps set in [package.json](/package.json).
6
5
6
+
- See `cli:install` and `bin` section, which are both related and work with `npm link`.
7
+
- See `make cli-build` which is for building binaries with `pkg` for distribution.
7
8
8
9
## Run directly
9
10
11
+
For testing:
12
+
10
13
```sh
11
14
$ npx ts-node src/cli/diffIndexGenerate.ts
12
15
```
@@ -45,4 +48,6 @@ Check:
45
48
ls -l $(realpath /opt/homebrew/bin/acm)
46
49
```
47
50
48
-
See [package.json](/package.json). Supposedly you should be able to leave out the project name when running `npm link` via an `npm run ...` command but I found this causes issues, so decided to always use the full name in the configuration. And to _always_ unlink then link in one go because of permissions issues.
51
+
See [package.json](/package.json).
52
+
53
+
Supposedly you should be able to leave out the project name when running `npm link` via an `npm run ...` command but I found this causes issues, so decided to always use the full name in the configuration. But removed it later . And to _always_ unlink then link in one go because of permissions issues.
Copy file name to clipboardExpand all lines: shell/TODO.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,5 +13,6 @@ of template, so it that can be passed on.
13
13
there's a problem - commit does not take cached flag - but it will use implied staged or not. so do not pass through.
14
14
BUT could look at advanced mode of pass through names of files to commit IF they are handled by status and commit, but using manual git add is good enough probably. esp for untracked files which need add anyway.
15
15
-[ ] See if it is possible to make the shell script here shorter and use the logic in acm instead and a minimal .sh hook file.
16
-
-[ ] Fix issue where if using the `cli:install` command then doing a build that removes everything means the commands don't work. Perhaps a **different output directory**.
16
+
-[ ] Fix issue where if using the `cli:install` command then doing a build that removes everything means the commands don't work. Perhaps a **different output directory**. Note `cli-build` can work though it is used pkg and renames (sometimes locally and also on CLI), so maybe different.
17
17
-[ ] Rename - this doesn't have to be shell anymore. Like `hooks`. Just fix any references to shell directory.
0 commit comments