Yuya Nishihara
311bdbf58d
cli: use RevisionArg type in "resolve -r", "bench", and example command
2024-04-03 15:30:30 +09:00
Martin von Zweigbergk
aeaab8aad3
cli: add a Ui::status() helper for writing non-error to stderr
...
This clarifies that status messages are not errors, and allows us to
implement a global `--quiet` flag for silencing status messages.
2024-04-01 13:00:27 -07:00
Yuya Nishihara
97024e5be4
cli: extract CommandError and helper functions to new module
...
The cli_util module is big enough to slow down Emacs, so let's split it up.
This change is an easy one.
2024-03-03 01:11:46 +09:00
Yuya Nishihara
c73a092759
cli: drop handling of legacy revset dag range operator
...
This basically reverts the change c183b94aef
"cli: warn when using `:` revset
operator."
2024-02-14 10:04:56 +09:00
Martin von Zweigbergk
60fae3114e
transaction: take description at end instead of start
...
It seems better to have the caller pass the transaction description
when we finish the transaction than when we start it. That way we have
all the information we want to include more readily available.
2023-12-13 08:12:49 -08:00
Martin von Zweigbergk
a0cbe7ced0
cli: rename *Commands
enums to *Command
...
Each instance of the enum represents a single command, so singular
`*Command` seems better. That also seems to match the examples in
clap's documentation.
2023-12-01 16:53:54 -08:00
Yuya Nishihara
7a3e72415c
cli: send status messages to stderr, specify stdout/stderr explicitly
...
Many of &mut UI can be changed to immutable borrows, but I'm not gonna
update them in this patch.
2023-10-11 19:24:01 +09:00
Martin von Zweigbergk
cc335a9970
cargo: move examples/
into cli/
so they are part of the build again
2023-08-07 21:49:45 +00:00