starship/src
Gabriel Victor 779e53cd66
feat(module): Add `sudo` module (#3135)
* add feature - sudo module

* add sudo module identifiers and entry point

* fix test test_sudo_not_cached

* add test test_sudo_cached

* add `allow_windows` and `binary` options

* rustfmt sudo_x_cached and rmv them on windows

* add false `allow_windows` block windows test

* add `doas` cached/not_cached tests

* better description in `starship explain`

* fix `test_doas_cached` with `-n` flag

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* rmv `binary` alternatives and their tests

* fix symbol and update config/README

* fix all mocks to use `sudo -n true`

* fix expected output in `test_sudo_cached`

* proper checking for blocked sudo

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* add `allow_windows = true` to non-windows tests

* allow sudo_* tests to run on windows + fix parsed

* rustfmt `blocks_windows` test

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2021-11-15 06:46:13 +01:00
..
configs feat(module): Add `sudo` module (#3135) 2021-11-15 06:46:13 +01:00
formatter fix(escaping): move escaping to individual variables (#3107) 2021-11-01 22:18:45 +01:00
init fix: save pipestatus in fish init functions (#3160) 2021-11-09 14:27:30 -05:00
modules feat(module): Add `sudo` module (#3135) 2021-11-15 06:46:13 +01:00
test fix: only print root level config logs a single time (#3132) 2021-10-27 15:13:17 +02:00
bug_report.rs fix(clippy): fix new clippy lints (#2939) 2021-07-29 14:27:46 -04:00
config.rs fix: only print root level config logs a single time (#3132) 2021-10-27 15:13:17 +02:00
configure.rs feat: print-config subset of config (#3179) 2021-11-15 06:45:19 +01:00
context.rs fix: ignore scan_dir timeout in tests (#3184) 2021-10-30 10:52:48 +02:00
lib.rs fix(windows): avoid inadvertly running exes from cwd (#2885) 2021-07-16 15:20:59 -04:00
logger.rs fix(clippy): fix new clippy lints (#2939) 2021-07-29 14:27:46 -04:00
main.rs feat: print-config subset of config (#3179) 2021-11-15 06:45:19 +01:00
module.rs feat(module): Add `sudo` module (#3135) 2021-11-15 06:46:13 +01:00
print.rs fix(escaping): move escaping to individual variables (#3107) 2021-11-01 22:18:45 +01:00
segment.rs feat: Add a fill module to pad out the line (#3029) 2021-09-12 19:59:15 -04:00
utils.rs fix(escaping): move escaping to individual variables (#3107) 2021-11-01 22:18:45 +01:00