-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: use clap as a commands parser #3867
refactor: use clap as a commands parser #3867
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Will wait for you to finish before approving
node_id: UniNodeId, | ||
/// length of time to ban the peer for in seconds | ||
#[clap(default_value_t = std::u64::MAX)] | ||
lenght: u64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lenght: u64, | |
length: u64, |
Maybe time_secs
is better but up to you
4f35513
to
0bb2089
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested a few commands and working well 👍
bors r+ |
3867: refactor: use clap as a commands parser r=sdbondi a=DenisKolodin Description --- The PR refactors replace our own parser with a derived by the `clap` crate. It also adds the `watch` command, and avoids unexpected status printing. Motivation and Context --- Improve the user experience of the node's shell. Simplify maintenance and adding new commands. Also periodically status prnting breaks the rustyline and prompt chars not printed properly. How Has This Been Tested? --- Manually 3892: chore: add license info missing from some crates r=sdbondi a=delta1 Description --- Adds the BSD-3-Clause license field to our crates that were missing license info Co-authored-by: Denis Kolodin <deniskolodin@gmail.com> Co-authored-by: Byron Hambly <bizzle@tari.com>
Build failed (retrying...): |
Description --- The PR refactors replace our own parser with a derived by the `clap` crate. It also adds the `watch` command, and avoids unexpected status printing. Motivation and Context --- Improve the user experience of the node's shell. Simplify maintenance and adding new commands. Also periodically status prnting breaks the rustyline and prompt chars not printed properly. How Has This Been Tested? --- Manually
Build failed: |
bors retry |
Description --- The PR refactors replace our own parser with a derived by the `clap` crate. It also adds the `watch` command, and avoids unexpected status printing. Motivation and Context --- Improve the user experience of the node's shell. Simplify maintenance and adding new commands. Also periodically status prnting breaks the rustyline and prompt chars not printed properly. How Has This Been Tested? --- Manually
Build failed: |
Seems like something has broken in the integration tests? @deniskolodin |
cf88ec1
to
b007757
Compare
49dfd64
to
4e06e66
Compare
4e06e66
to
25dde41
Compare
1159474
to
df762f9
Compare
df762f9
to
9847ad8
Compare
* development: (118 commits) chore: clean up providing seed words from LibWallet (tari-project#3906) chore: move tari_script into its own crate (tari-project#3909) fix(consensus): check blockchain version within valid range (tari-project#3916) ci: fix missing npm deps and add javascript ci (tari-project#3910) refactor: use clap as a commands parser (tari-project#3867) chore: use git tagged tari_utilities and tari-crypto deps (tari-project#3913) fix: aligned tables left (tari-project#3899) ci: fix vue build v0.29.0 feat!: add recovery byte to output features (tari-project#3727) add ffi ci check (tari-project#3915) fix(block-sync): use avg latency to determine slow sync peer for block sync (tari-project#3912) fix: fix merge mining proxy pool mining (tari-project#3814) revert: remove use of blocking tasks for DHT db (reverts tari-project#3887) (tari-project#3901) chore: add license info missing from some crates (tari-project#3892) fix(core): correctly filter pruned sync peers for block sync (tari-project#3902) ci: revert bors squash merge (tari-project#3900) fix: update metadata size calculation to use FixedSet.iter() docs(rfc): deep links structure convention - deep links is use (tari-project#3897) ci: use squash merge for bors (tari-project#3896) ...
* development: chore: clean up providing seed words from LibWallet (tari-project#3906) chore: move tari_script into its own crate (tari-project#3909) fix(consensus): check blockchain version within valid range (tari-project#3916) ci: fix missing npm deps and add javascript ci (tari-project#3910) refactor: use clap as a commands parser (tari-project#3867) chore: use git tagged tari_utilities and tari-crypto deps (tari-project#3913) fix: aligned tables left (tari-project#3899) ci: fix vue build v0.29.0 feat!: add recovery byte to output features (tari-project#3727) add ffi ci check (tari-project#3915)
Description
The PR refactors replace our own parser with a derived by the
clap
crate.It also adds the
watch
command, and avoids unexpected status printing.More changes:
non-interactive
mode--watch
parameter to thenon-interactive
mode to run a command with an intervalwatch
command to the interactive modeMotivation and Context
Improve the user experience of the node's shell.
Simplify maintenance and adding new commands.
Also periodically status prnting breaks the rustyline and prompt chars not printed properly.
How Has This Been Tested?
Manually