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
PlexSheep added the
Kind/Feature
Reviewed
Confirmed
Priority
High
labels 2024-06-27 21:07:10 +02:00
PlexSheep added 1 commit 2024-06-27 21:10:53 +02:00
cargo devel CI / cargo CI (push) Failing after 1m13s Details
101e20da43
chore: bump version to v0.6.0-alpha.0
PlexSheep added 1 commit 2024-06-27 21:20:12 +02:00
cargo devel CI / cargo CI (push) Successful in 1m51s Details
940b5ffa1a
fix(cargo): remove path for the libpt version used in libpt-py
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.
PlexSheep added 1 commit 2024-06-27 21:27:21 +02:00
cargo devel CI / cargo CI (push) Has been cancelled Details
5e72ff3fa6
feat(cli): add libpt-cli and reexport essential cli deps
PlexSheep force-pushed feat/cli from 5e72ff3fa6 to 630c50a64a 2024-06-27 21:27:30 +02:00 Compare
forgejo-actions added 1 commit 2024-06-27 21:29:38 +02:00
PlexSheep added 2 commits 2024-06-27 21:30:09 +02:00
forgejo-actions added 1 commit 2024-06-27 21:32:16 +02:00
PlexSheep added 1 commit 2024-06-27 22:19:56 +02:00
cargo devel CI / cargo CI (push) Successful in 2m5s Details
502298d47b
feat(cli)!: remove printing::divider, add borderprint borderfmt and borderfmt_advanced
divider was removed because it was too simple and code duplication makes
therefore more sense for it's usecase.

Refs: #84
forgejo-actions added 1 commit 2024-06-27 22:22:01 +02:00
PlexSheep added 2 commits 2024-06-27 22:22:52 +02:00
08bfc03628 refactor(cli::printing): use Option<Color> for blockfmt_advanced
Users might just need the cell String, not a colored one.
PlexSheep added 1 commit 2024-06-27 22:26:22 +02:00
PlexSheep added 1 commit 2024-06-27 22:31:39 +02:00
cargo devel CI / cargo CI (push) Successful in 2m0s Details
1c78801101
docs(cli::printing): add module documentation
PlexSheep added 1 commit 2024-06-27 22:34:12 +02:00
cargo devel CI / cargo CI (push) Has been cancelled Details
3fd04a695d
feat(cli): add cli crate export to libpt
PlexSheep added 1 commit 2024-06-27 22:36:15 +02:00
cargo devel CI / cargo CI (push) Successful in 2m6s Details
a92f5f308d
chore: add clap derive feature
forgejo-actions added 1 commit 2024-06-27 22:38:21 +02:00
PlexSheep added 2 commits 2024-06-28 00:06:10 +02:00
forgejo-actions added 1 commit 2024-06-28 00:08:23 +02:00
PlexSheep added 1 commit 2024-06-28 00:17:18 +02:00
cargo devel CI / cargo CI (push) Has been cancelled Details
1e912d9be8
refactor: reexport tracing from libpt-log
PlexSheep added 1 commit 2024-06-28 00:17:39 +02:00
cargo devel CI / cargo CI (push) Successful in 2m4s Details
2e26983fb6
chore: bump version of libpt-log to v0.4.3
PlexSheep added 1 commit 2024-06-28 00:40:55 +02:00
cargo devel CI / cargo CI (push) Successful in 2m0s Details
90cf678dde
feat(cli::args): VerbosityLevel
VerbosityLevel lets you easily get a loglevel from repeated -v and -q
flags. Documentation included.

Refs: #84
PlexSheep reviewed 2024-06-28 00:43:59 +02:00
@ -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 reviewed 2024-06-28 00:45:11 +02:00
PlexSheep left a comment
Author
Owner

going strong so far

going strong so far
PlexSheep added 1 commit 2024-06-28 08:56:24 +02:00
cargo devel CI / cargo CI (push) Successful in 2m16s Details
0b3610e7c5
chore: change LICENSE to GPL-3.0-or-later
PlexSheep added 1 commit 2024-06-28 14:36:23 +02:00
cargo devel CI / cargo CI (push) Successful in 2m21s Details
a79513d1db
feat(cli): reexport human-panic and exitcode
forgejo-actions added 1 commit 2024-06-28 14:38:46 +02:00
PlexSheep added 2 commits 2024-06-28 14:41:23 +02:00
PlexSheep added 1 commit 2024-06-28 14:44:06 +02:00
cargo devel CI / cargo CI (push) Successful in 2m4s Details
db2fd9f60e
docs: fix redundand link binding
PlexSheep added 1 commit 2024-06-28 14:51:15 +02:00
cargo devel CI / cargo CI (push) Successful in 2m5s Details
3e5174dab6
docs(cli): expand on IsTerminal differences
PlexSheep added 1 commit 2024-06-28 18:09:41 +02:00
cargo devel CI / cargo CI (push) Has been cancelled Details
a9fe9d21ec
chore: reexport shlex and add dialoguer features
PlexSheep added 1 commit 2024-06-28 18:10:12 +02:00
cargo devel CI / cargo CI (push) Failing after 1m43s Details
d413b74d45
feat(cli): add repl example without using library items
PlexSheep added 1 commit 2024-06-28 23:05:29 +02:00
cargo devel CI / cargo CI (push) Has been cancelled Details
6ae2881148
feat(cli::repl): #84 working and nice repl structure
PlexSheep force-pushed feat/cli from 6ae2881148 to 471364e711 2024-06-28 23:05:54 +02:00 Compare
PlexSheep added 1 commit 2024-06-28 23:53:04 +02:00
cargo devel CI / cargo CI (push) Successful in 2m15s Details
0488b2f497
refactor(cli::repl): introduce custom error type, modularize
forgejo-actions added 1 commit 2024-06-28 23:55:19 +02:00
PlexSheep added 2 commits 2024-06-29 00:49:31 +02:00
PlexSheep added 2 commits 2024-06-29 17:05:54 +02:00
PlexSheep added 1 commit 2024-06-29 17:36:00 +02:00
cargo devel CI / cargo CI (push) Successful in 2m10s Details
c81952002f
fix(cli): loglevel values were not calculated correctly
PlexSheep added 2 commits 2024-07-09 17:36:47 +02:00
forgejo-actions added 1 commit 2024-07-09 17:39:14 +02:00
PlexSheep added 2 commits 2024-07-09 17:41:59 +02:00
PlexSheep added 1 commit 2024-07-09 18:10:03 +02:00
cargo devel CI / cargo CI (push) Has been cancelled Details
476efb85c8
refactor(cli): apply all clippy findings
PlexSheep reviewed 2024-07-09 18:11:18 +02:00
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
PlexSheep added 1 commit 2024-07-09 18:11:38 +02:00
cargo devel CI / cargo CI (push) Successful in 2m15s Details
f50dfe05e4
Merge branch 'devel' into feat/cli
PlexSheep merged commit 511fd69ab6 into devel 2024-07-09 18:12:24 +02:00
This repo is archived. You cannot comment on pull requests.
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.