You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sourse in github using clap crate is coding in the kvs.rs file. However, I use the cli.yml to do it, and I can not pass some test cases.
cli.yml file
name: project-1version: "1.0"author: *about: get some args to do somethingargs:
- INPUT:
help: the flag to inputrequired: trueindex: 1
- V:
short: Vmultiple: falsehelp: show the versionsubcommands:
- set:
about: to set the key-value with the inputversion: "1.0"author: *args:
- key:
index: 1help: the key is needed.required: true
- value:
index: 2help: the value is needed.required: true
- get:
about: to get the value by the keyversion: "1.0"author: *args:
- key:
index: 1help: the key is needed.required: true
- rm:
about: to remove the key-value by the keyversion: "1.0"author: *args:
- key:
index: 1help: the key is needed.required: true
running 13 tests
test cli_no_args ... ok
test cli_invalid_subcommand ... ok
test get_non_existent_value ... ok
test cli_get ... FAILED
test get_stored_value ... ok
test overwrite_value ... ok
test remove_key ... ok
test cli_rm ... FAILED
test cli_set ... FAILED
test cli_invalid_get ... ok
test cli_invalid_rm ... ok
test cli_version ... FAILED
test cli_invalid_set ... ok
The text was updated successfully, but these errors were encountered:
General Question
The sourse in github using clap crate is coding in the kvs.rs file. However, I use the cli.yml to do it, and I can not pass some test cases.
cli.yml file
kvs.rs file
the test result
The text was updated successfully, but these errors were encountered: