diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-14 16:32:31 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-14 16:32:31 +0700 |
| commit | bf9c8226b4d187b5d2d938b8774ecc1bda3d0b35 (patch) | |
| tree | dcb285bad69104b318aa0e0d0da9ac207d38b7d8 /sudo_test.go | |
| parent | a0c9e5e87e951df4d1bc86c6ccc2ed73dbe7f942 (diff) | |
| download | awwan-bf9c8226b4d187b5d2d938b8774ecc1bda3d0b35.tar.xz | |
all: refactoring ExecLocal to add sudo "-S" option when stdin is not-nil
Instead of adding the "-S" option before ExecLocal is called, we
automatically added inside the ExecLocal, so the caller does not need
to check or add the "-S" option.
This makes all local statements ("#require", default, "#get!", "#put!")
that is sudo works without any modification like we do previously in
SudoCopy.
While at it, we detach ExecLocal from Session, since the "*Session"
receiver is never used inside their body.
Diffstat (limited to 'sudo_test.go')
0 files changed, 0 insertions, 0 deletions
