Skip to content

Are the .ps1 and psm1 modules needed? #166

Closed Answered by gerardog
marticliment asked this question in Q&A
Discussion options

You must be logged in to vote

If you deploy just the .exe, then your cmd elevations will work fine, also gsudo !! (when called from cmd) will work. If you call gsudo from your app, it will work.

  • gsudo (the one without extension) is used to properly elevate bash commands from inside wsl / git-bash / cygwin / etc ...
  • Invoke-gsudo.ps1 provides the Invoke-gsudo PowerShell cmdlet (Nicer powershell syntax).
  • gsudoModule.psm1 and gsudoModule.psd1 provides the PowerShell module that, if Imported in the profile, makes gsudo !! work from PowerShell and also Invoke-gsudo AutoComplete.

Those files are not really required if you don't do those things, but they improve the user experience... If lacking, the user would either think…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@gerardog
Comment options

@marticliment
Comment options

@marticliment
Comment options

@gerardog
Comment options

@marticliment
Comment options

Answer selected by marticliment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants