Sudo with gum spin #104
Replies: 1 comment
-
One solution that may work is to check if sudo will require a password. It's pretty common for sudo to to not require a password for some time (configured used the if sudo -n true &> /dev/null; then
gum ... -- sudo your_command
else
sudo your_command
fi If you want to increase the chances of this method working you can do something like You may also want to check out From the man page:
|
Beta Was this translation helpful? Give feedback.
-
How to implement a sudo command with gum spin?
For example,
gum spin --show-output --spinner meter --title "Updating LaTeX utility..." -- sudo tlmgr update --self
Beta Was this translation helpful? Give feedback.
All reactions