pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.32k stars 365 forks source link

Add the option to request a login shell from the context.sudo helper. #864

Open unux opened 2 years ago

unux commented 2 years ago

Add ability for users to request a login shell from context.sudo in order to utilize things like the shell environment setup scripts on session start.

Eidansoft commented 1 year ago

In order to use this change from fabric2, it would be needed also a PR into fabric2 repo to make it accept the login_shell param into SerialGroup and ThreadingGroup sudo calls. Is it already created somewhere?? I cannot find it. Thanks