Andre Toerien
2aa3d94a98
feat(sudo): print warning if Windows Sudo is misconfigured
2025-09-28 19:14:45 +02:00
AThePeanut4
a886d20a7b
refactor(sudo): rename interactive to login_shell
2025-09-28 14:57:40 +02:00
Andre Toerien
a2afdb821f
feat(sudo): add SudoKind::Null
2025-09-28 14:57:40 +02:00
Stuart Reilly
53d08cdf28
Sudo preserve env list argument is --preserve-env ( #1276 )
...
Sudo preserve-env
Sudo's preserve env list is `--preserve-env=...` not `--preserve_env=...`.
https://www.man7.org/linux/man-pages/man8/sudo.8.html
2025-08-20 17:33:35 +02:00
Andre Toerien
dbe1a5c988
refactor(sudo): add SudoKind::WinSudo
2025-08-06 15:21:51 +02:00
Andre Toerien
b6c1290934
refactor(sudo): add SudoExecuteOpts builder functions and preserve_env enum
2025-08-06 15:21:51 +02:00
Andre Toerien
306ff3c7c5
fix(sudo): prevent sudo_command = "sudo" finding gsudo
2025-08-06 15:21:51 +02:00
Andre Toerien
a95dd1e037
refactor: route sudo usage through Sudo::execute*
2025-08-06 15:21:51 +02:00
Andre Toerien
012a6bbde3
fix(sudo): set sudo flags depending on kind
2025-08-06 15:21:51 +02:00
Andre Toerien
32197f79f3
refactor: move RunType::execute to ExecutionContext
2025-08-06 15:21:51 +02:00
Xarblu
30f1c3c1b4
feat(sudo): add run0 as a sudo variant ( #1067 )
2025-03-12 09:07:37 +08:00
Andreas02-dev
20667a23d3
fix(sudo): fix sudo detection & pre-sudo for GSudo ( #1058 )
2025-03-06 08:51:40 +08:00
SteveLauC
13a46a44a8
refactor: deprioritize please-sudo ( #541 )
...
refactor: deprioritze please-sudo
2023-08-22 09:14:29 +08:00
Thomas de Queiroz Barros
a3628d0d49
Add sudo_command option ( #379 )
...
This allows the user to specify the preferred sudo command to be used
instead of the command chosen by Sudo::detect
2023-03-13 19:23:37 +00:00
Dan Sully
fcf776fe07
Add support for please (access elevation) ( #310 )
...
* Add support for please (access elevation)
Please is a sudo-like tool written in Rust.
https://gitlab.com/edneville/please
* Fixes code typo
---------
Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com >
Co-authored-by: Thomas Schönauer <t.schoenauer@hgs-wt.at >
2023-02-02 19:22:56 +00:00
Rebecca Turner
b31778bdd8
Add Sudo type ( #221 )
...
* Create `Sudo` type and `SudoKind` enum
* Fix build
* reformat
* Fix choco on windows
* Fix linux
* Fix linux more
* more fix stuff hehe hoho hahaha
* more fix stuff hehe hoho hahaha
Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com >
2022-11-25 22:19:32 +00:00
Rebecca Turner
e456155562
Add pre_sudo option ( #219 )
...
* Add `pre_sudo` option
2022-11-24 19:15:43 +00:00