Add CLI flags to select which sections to show

Users of the binary can now provide flags `-d/--defs`, `-r/--refs` or
`-c/--docs` to select which sections of the Elixir response they wish to
see. These options can be combined. If none are provided, the default
behaviour is to show everything.

Signed-off-by: Lymkwi <lymkwi@vulpinecitrus.info>
This commit is contained in:
Amelia 2024-02-22 19:45:36 +01:00
parent a5d3ed9af3
commit 7c714a9655
No known key found for this signature in database
GPG key ID: 592231DCABCF51C0
3 changed files with 305 additions and 181 deletions

View file

@ -8,6 +8,7 @@ license = "ACSL"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.5.1", features = ["derive"] }
reqwest = { version = "0.11.22", features = ["default-tls", "json", "gzip"] }
serde = { version = "1.0.190", features = ["derive"] }
tokio = { version = "1.33.0", features = ["rt-multi-thread", "macros", "net"] }