Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed May 24, 2024
1 parent 2e6359b commit 9f02350
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions book/src/chsr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ chsr options path [operation]
<u><b>Environment options:</b></u>
chsr options env [operation]
<b>setpolicy</b> [policy] Specify the policy for environment settings (delete-all, keep-all, inherit).
<b>set</b> [key=value,...] Set the policy as delete-all and the key-value map to enforce.
<b>set</b> [key=value,...] Set variables to enforce.
<b>keep-only</b> [key,...] Set the policy as delete-all and the key map to keep.
<b>delete-only</b> [key,...] Set the policy as keep-all and the key map to delete.
<b>whitelist, wl</b> [listing] Manage the whitelist for environment settings.
<b>blacklist, bl</b> [listing] Manage the blacklist for environment settings.
<b>checklist, cl</b> [listing] Manage the checklist for environment settings. (Removed if contains unsafe chars)

<b>setlist, sl</b> [listing] Manage the setlist for environment settings. (define environment variables)

<u><b>Timeout options:</b></u>
chsr options timeout [operation]
Expand Down
5 changes: 4 additions & 1 deletion src/chsr/cli/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ chsr options path [operation]
const RAR_USAGE_OPTIONS_ENV :&str = formatcp!("{UNDERLINE}{BOLD}Environment options:{RST}
chsr options env [operation]
{BOLD}setpolicy{RST} [policy] Specify the policy for environment settings (delete-all, keep-all, inherit).
{BOLD}set{RST} [key=value,...] Set the policy as delete-all and the key-value map to enforce.
{BOLD}set{RST} [key=value,...] Set variables to enforce.
{BOLD}keep-only{RST} [key,...] Set the policy as delete-all and the key map to keep.
{BOLD}delete-only{RST} [key,...] Set the policy as keep-all and the key map to delete.
{BOLD}whitelist, wl{RST} [listing] Manage the whitelist for environment settings.
{BOLD}blacklist, bl{RST} [listing] Manage the blacklist for environment settings.
{BOLD}checklist, cl{RST} [listing] Manage the checklist for environment settings. (Removed if contains unsafe chars)
{BOLD}setlist, sl{RST} [listing] Manage the setlist for environment settings. (define environment variables)
",UNDERLINE=UNDERLINE, BOLD=BOLD, RST=RST);

const RAR_USAGE_OPTIONS_TIMEOUT: &str = formatcp!(
Expand Down

0 comments on commit 9f02350

Please sign in to comment.