Skip to content

Commit

Permalink
feat: Also generate completions from KDL/JSON/YAML (#12)
Browse files Browse the repository at this point in the history
* refactor: Use serde for deserializing JSON

* feat: Deserialize to KDL (untested)

* (refactor, tests): Move man tests to resources/man

* tests: Make json version of test1

* style: Use impl instead of explicit type params

* style: heed some clippy lints

* ci: Allow missing panic doc (clippy)

* Start on parse_deser module

* feat: implement basic KDL parsing

* Make parse_from_str take InputFormat enum instead of ext

* feat: make both commands available under CLI

* Add ArgType enum to use later

* Rename package to gen-completions
  • Loading branch information
ysthakur committed Dec 24, 2023
1 parent a3c74fb commit 1c36fd2
Show file tree
Hide file tree
Showing 45 changed files with 1,210 additions and 1,057 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ jobs:
-Dwarnings \
-Wclippy::all \
-Wclippy::pedantic \
-Aclippy::comparison_chain \
-Aclippy::missing-panics-doc \
-Aclippy::module-name-repetitions \
-Aclippy::redundant-closure-for-method-calls
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- id: release
uses: google-github-actions/release-please-action@v3
with:
package-name: man-completions
package-name: gen-completions
release-type: rust
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ target/
# Nix
result/

tests/resources/tmp/
tests/**/tmp/
Loading

0 comments on commit 1c36fd2

Please sign in to comment.