Code

History

Commits on ig/commit-debug to cli/src/ui.rs70+
  1. ui: do not write() to channel if builtin pager has terminatedYuya Nishihara committed 2 years agof4dd856
  2. ui: include error sources in pager warningYuya Nishihara committed 2 years agoce2bc8d
  3. built-in pager: write a message to the user if pager failed to startIlya Grigoriev committed 2 years ago37ccfd5
  4. ui: print :builtin pager suggestion as a hintYuya Nishihara committed 2 years agocf053b7
  5. ui: rewrite request_pager() to return early and use stdout instanceYuya Nishihara committed 2 years agob503ecb
  6. ui: extract finalize_pager() as UiOutput methodYuya Nishihara committed 2 years ago47a4406
  7. ui: fill in default term width globally and return as usizeYuya Nishihara committed 2 years ago1977748
  8. ui: remove Option<_> wrapping from ui.hint_() helpersYuya Nishihara committed 2 years ago8e56719
  9. formatter: add .labeled().with_heading() helperYuya Nishihara committed 2 years agob9e29b0
  10. ui: replace qualified std::io pathYuya Nishihara committed 2 years ago57022d6
  11. cli: insert tracing at editor/pager invocationYuya Nishihara committed 2 years agodb75e19
  12. ui: add per-type FormatterFactory constructors, inline selectionYuya Nishihara committed 2 years agoe3b3b55
  13. ui: inline debug_color() and use_color()Yuya Nishihara committed 2 years ago46246a7
  14. ui: forward .color() to FormatterFactoryYuya Nishihara committed 2 years ago46226a4
  15. ui: add helper function that sets up FormatterFactoryYuya Nishihara committed 2 years ago0423e3e
  16. cli: add `ui.color = "debug"`tinger committed 2 years agod0a29a8
  17. clippy: disable bogus lints for nightly clippyAustin Seipp committed 2 years ago4b45dde
  18. cli: add a global `--quiet` flag, which silences status messagesMartin von Zweigbergk committed 2 years agoadf3b50
  19. ui: make `hint_*()` methods return `Option`Martin von Zweigbergk committed 2 years ago4962d9a
  20. ui: make `status()` return a `dyn Write`, add `status_formatter()`Martin von Zweigbergk committed 2 years agoe38e290
  21. cli: add a Ui::status() helper for writing non-error to stderrMartin von Zweigbergk committed 2 years agoaeaab8a
  22. cli: print "Failed to wait on pager" as warningYuya Nishihara committed 2 years ago078acc9
  23. cli: add "Hint: " or "Warning: " heading to almost all messagesYuya Nishihara committed 2 years ago3152570
  24. cli: add convenient methods to print hint or warning with default headingsYuya Nishihara committed 2 years agobd3d930
  25. cli: highlight "Error: " headingsYuya Nishihara committed 2 years ago2e91146
  26. cli: highlight "Warning: " and "warning: " headingsYuya Nishihara committed 2 years ago1ebe751
  27. cli: highlight "Hint: " headingYuya Nishihara committed 2 years ago78ce9ea
  28. cli: add more CommandError factory functions, consolidate inner typeYuya Nishihara committed 2 years agoc333481
  29. ui: Remove `&mut` requirement for prompt functionsBenjamin Tan committed 2 years ago2831459
  30. cli: extract CommandError and helper functions to new moduleYuya Nishihara committed 2 years ago97024e5
  31. Use `minus` as a builtin pagerBenjamin Brittain committed 2 years agod3699c2
  32. ui: remove redundant .to_lowercase() from prompt_yes_no()Yuya Nishihara committed 2 years ago2839922
  33. testing: allow testing of commands that expect stdinDaniel Ploch committed 2 years agodeaea07
  34. ui: add helpers for prompting from a set of valuesDaniel Ploch committed 2 years agof3edc75
  35. ui: handle EOF on promptsDaniel Ploch committed 2 years ago5448a47