-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (26 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
DEFAULT_GOAL := all
.PHONY: all
all: fmt check test
.PHONY: check
check:
cargo +nightly fmt --all -- --check
cargo clippy --all-features --all-targets -- -D warnings
.PHONY: test
test:
cargo test
.PHONY: fmt
fmt:
cargo +nightly fmt --all
.PHONY: cli-md
cli-md:
@rm -f cli.md
@echo "### commands\n\n\`\`\`" >> cli.md && cargo run -q -- -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### pwd\n\n\`\`\`" >> cli.md && cargo run -q -- pwd -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### totp\n\n\`\`\`" >> cli.md && cargo run -q -- totp -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### show\n\n\`\`\`" >> cli.md && cargo run -q -- show -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### add\n\n\`\`\`" >> cli.md && cargo run -q -- add -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### init\n\n\`\`\`" >> cli.md && cargo run -q -- init -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### list\n\n\`\`\`" >> cli.md && cargo run -q -- list -h >> cli.md && echo "\`\`\`\n" >> cli.md
@echo "### completion\n\n\`\`\`" >> cli.md && cargo run -q -- completion -h >> cli.md && echo "\`\`\`\n" >> cli.md
@cat cli.md
@rm cli.md