framesurge / perseus

A state-driven web development framework for Rust with full support for server-side rendering and static generation.
https://framesurge.sh/perseus/en-US
MIT License
2.18k stars 89 forks source link

Request: Add CLI Completion #325

Open willwill2will54 opened 5 months ago

willwill2will54 commented 5 months ago

This issue is requesting an enhancement to Perseus. Details of the scope will be available in issue labels. The user described the problem related to this request as follows:

Perseus-cli is missing CLI Completion

The user described the issue as follows:

I would like to request the adding of CLI completion definitions for the perseus-cli tool. Perseus-cli uses clap under the hood, which has functionality for generating completions at run-time or compile-time. Which to do would require discussion, as each has trade-offs.

  • The author is willing to attempt an implementation: true
Tribble internal data dHJpYmJsZS1yZXBvcnRlZCxDLWVuaGFuY2VtZW50LGF1dGhvci13aWxsaW5nLXRvLWltcGw=
arctic-hen7 commented 5 months ago

Yes I've been meaning to do this for a while but just haven't gotten around to it! I think compile-time completions sound good unless you see any particular problem with that? I'd be very happy to accept a PR for this.