Skip to content

Commit

Permalink
Merge pull request #45 from LeChatP/develop
Browse files Browse the repository at this point in the history
Tests and bugfixes
  • Loading branch information
LeChatP authored May 5, 2024
2 parents 02356fa + 8d53497 commit a5e7ae0
Show file tree
Hide file tree
Showing 14 changed files with 2,315 additions and 1,965 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 a5e7ae0

Please sign in to comment.