implement a cli module #85

Merged
PlexSheep merged 46 commits from feat/cli into devel 2024-07-09 18:12:24 +02:00
Owner

see #84

This PR implements/bundles a lot of functionalities for the simplified creation of CLI applications

see #84 This PR implements/bundles a lot of functionalities for the simplified creation of CLI applications
chore: bump version to v0.6.0-alpha.0
Some checks failed
cargo devel CI / cargo CI (push) Failing after 1m13s
101e20da43
fix(cargo): remove path for the libpt version used in libpt-py
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m51s
940b5ffa1a
otherwise, libpt-py always uses the latest libpt version by path that is
in the workspace, which is bad if the libpt version is ahead of the
libpt-py version.
feat(cli): add libpt-cli and reexport essential cli deps
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
5e72ff3fa6
feat(cli)!: remove printing::divider, add borderprint borderfmt and borderfmt_advanced
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m5s
502298d47b
divider was removed because it was too simple and code duplication makes
therefore more sense for it's usecase.

Refs: #84
Users might just need the cell String, not a colored one.
Merge branch 'feat/cli' of https://git.cscherr.de/PlexSheep/pt into feat/cli
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m55s
0179c53e82
docs(cli::printing): document use of parameters for blockfmt_advanced
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m59s
57709e963c
docs(cli::printing): add module documentation
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m0s
1c78801101
feat(cli): add cli crate export to libpt
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
3fd04a695d
chore: add clap derive feature
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m6s
a92f5f308d
refactor: reexport tracing from libpt-log
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
1e912d9be8
chore: bump version of libpt-log to v0.4.3
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m4s
2e26983fb6
feat(cli::args): VerbosityLevel
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m0s
90cf678dde
VerbosityLevel lets you easily get a loglevel from repeated -v and -q
flags. Documentation included.

Refs: #84
@ -0,0 +101,4 @@
/// ```
#[derive(Parser, Clone, PartialEq, Eq, Hash)]
#[cfg(feature = "log")]
pub struct VerbosityLevel {
Author
Owner

If we add more to the args module in the future, we will have to move VerbosityLevel to a submodule of the args module.

If we add more to the `args` module in the future, we will have to move `VerbosityLevel` to a submodule of the `args` module.
PlexSheep left a comment
Author
Owner

going strong so far

going strong so far
chore: change LICENSE to GPL-3.0-or-later
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m16s
0b3610e7c5
feat(cli): reexport human-panic and exitcode
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m21s
a79513d1db
docs: fix redundand link binding
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m4s
db2fd9f60e
docs(cli): expand on IsTerminal differences
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m5s
3e5174dab6
chore: reexport shlex and add dialoguer features
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
a9fe9d21ec
feat(cli): add repl example without using library items
Some checks failed
cargo devel CI / cargo CI (push) Failing after 1m43s
d413b74d45
feat(cli::repl): #84 working and nice repl structure
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
6ae2881148
refactor(cli::repl): introduce custom error type, modularize
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m15s
0488b2f497
fix(cli): loglevel values were not calculated correctly
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m10s
c81952002f
refactor(cli): apply all clippy findings
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
476efb85c8
PlexSheep left a comment
Author
Owner

yay

yay
PlexSheep changed title from WIP: implement a cli module to implement a cli module 2024-07-09 18:11:26 +02:00
Merge branch 'devel' into feat/cli
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m15s
f50dfe05e4
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/pt#85
No description provided.