Skip to content

Commit 4ca365b

Browse files
committed
Fix up readme-cli-help config.
1 parent 8574be4 commit 4ca365b

File tree

7 files changed

+80
-11
lines changed

7 files changed

+80
-11
lines changed

.config/readme-cli-help.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "../node_modules/readme-cli-help/schema.json",
3+
"files": {
4+
"./README.md": {
5+
"codeFences": [
6+
{
7+
"infoString": "text help",
8+
"command": ["cargo", "run", "--", "--help"]
9+
}
10+
]
11+
}
12+
}
13+
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
/node_modules
12
/target
2-
/Icon
3+
/Icon
4+
35
# Workaround for https://github.com/jj-vcs/jj/issues/6791
46
/Icon*

Makefile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22
build:
33
cargo build --release
44

5+
.PHONY: check
6+
check: lint test build
7+
58
.PHONY: lint
69
lint:
710
cargo clippy -- --deny warnings
811
cargo fmt --check
12+
bun x readme-cli-help check
913

1014
.PHONY: format
1115
format:
1216
cargo clippy
1317
cargo fmt
18+
bun x readme-cli-help update
1419

1520
.PHONY: cargo-test test
16-
test: test-behaviour lint check-readme-cli-help
21+
test: test-behaviour lint
1722

1823
.PHONY: cargo-test
1924
cargo-test:
@@ -38,14 +43,6 @@ install:
3843
.PHONY: clean
3944
clean:
4045

41-
.PHONY: readme-cli-help
42-
readme-cli-help:
43-
bun x readme-cli-help "cargo run -- --help"
44-
45-
.PHONY: check-readme-cli-help
46-
check-readme-cli-help:
47-
bun x readme-cli-help --check-only "cargo run -- --help"
48-
4946
.PHONY: reset
5047
reset:
5148
rm -rf ./target

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ You should see a bunch of new `.iconset` folders and `.icns` files that were aut
123123

124124
## Full options
125125

126-
````cli-help
126+
````text help
127127
Generate a native-style macOS folder icon from a mask file.
128128
129129
Usage: folderify [OPTIONS] [MASK] [TARGET]

bun.lock

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

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[install]
2+
auto = "disable"
3+
linker = "isolated"

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dependencies": {},
3+
"devDependencies": {
4+
"readme-cli-help": "^0.4.9"
5+
}
6+
}

0 commit comments

Comments
 (0)