jj/src
Martin von Zweigbergk 2a17bb76e9 cli: add factory function for CommandError::UserError
I want to add a separate field for a hint, so that can be printed in a
different color (than red). Having a factory function is useful then,
since most call sites don't want to pass a hint. Also, by using a
factory function instead of using the constructor directly means that
we can accept `&str` arguments instead of forcing the caller to
convert a string literal to `String`.
2022-11-12 17:58:22 -08:00
..
cleanup_guard.rs cli: define drop+signal guard helper 2022-11-06 18:15:22 -08:00
cli_util.rs cli: add factory function for CommandError::UserError 2022-11-12 17:58:22 -08:00
commands.rs cli: add factory function for CommandError::UserError 2022-11-12 17:58:22 -08:00
config.rs Fix typo in error message 2022-09-14 15:29:53 -07:00
diff_edit.rs working_copy: remove return value from TreeState::snapshot() 2022-10-02 15:15:18 +09:00
formatter.rs templater: drop support for open template keyword 2022-11-05 06:14:37 -07:00
graphlog.rs graphlog: use usize::from(:bool) to convert boolean to integer 2022-10-09 12:20:15 -07:00
lib.rs cli: define drop+signal guard helper 2022-11-06 18:15:22 -08:00
main.rs cli: define drop+signal guard helper 2022-11-06 18:15:22 -08:00
progress.rs cli: fix rebase error 2022-11-06 18:50:58 -08:00
template.pest import commit 0f15be02bf4012c116636913562691a0aaa7aed2 from my hg repo 2020-12-12 00:23:38 -08:00
template_parser.rs cleanup: avoid an unnecessary Box for argument to formatter 2022-11-05 22:49:54 -07:00
templater.rs templater: indicate if branch needs to be pushed to a remote 2022-11-09 22:44:55 -08:00
ui.rs cli: hide cursor during progress display 2022-11-06 18:15:22 -08:00