Skip to content

Commit

Permalink
Tests and bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed May 5, 2024
1 parent 99764d2 commit 1f2534d
Show file tree
Hide file tree
Showing 14 changed files with 2,292 additions and 1,952 deletions.
8 changes: 4 additions & 4 deletions src/chsr/cli.pest
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ opt_timeout_args = _{
opt_timeout_t_arg = ${ ("--type" ~ assignment? | "-t" ~ WHITESPACE*) ~ opt_timeout_type? }
opt_timeout_type = { "tty" | "ppid" | "uid" }
opt_timeout_d_arg = { ("--duration" ~ assignment? | "-d" ~ WHITESPACE*) ~ time? }
time = _{ (hours~colon)? ~ minutes ~ colon ~ seconds | (minutes~colon)? ~ seconds }
time = { (hours~colon)? ~ minutes ~ colon ~ seconds | (minutes~colon)? ~ seconds }
colon = _{ ":"}
hours = { ASCII_DIGIT+ }
minutes = { ASCII_DIGIT+ }
seconds = { ASCII_DIGIT+ }
hours = _{ ASCII_DIGIT+ }
minutes = _{ ASCII_DIGIT+ }
seconds = _{ ASCII_DIGIT+ }
opt_timeout_m_arg = { ("--max-usage" ~ assignment? | "-m" ~ WHITESPACE*) ~ opt_timeout_max_usage? }
opt_timeout_max_usage = { ASCII_DIGIT+ }

Expand Down
Loading

0 comments on commit 1f2534d

Please sign in to comment.