Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.0 draft. #94

Merged
merged 36 commits into from
Aug 6, 2021
Merged

Release v1.0 draft. #94

merged 36 commits into from
Aug 6, 2021

Conversation

gerardog
Copy link
Owner

@gerardog gerardog commented Aug 2, 2021

This is a big milestone. Let's take some time, to let early adopters (maybe you?) test it.

Features

# Before: (<= v0.7.3)
gsudo Get-Item '""C:\Program Files\""'
$hash = gsudo "(Get-FileHash \""$file\"" -Algorithm $algorithm).Hash"
$hash = gsudo '(Get-FileHash \"C:\My Secret.txt\").Hash'
# After: (only standard pwsh escaping rules needed)
gsudo Get-Item "C:\Program Files\"
$hash = gsudo "(Get-FileHash ""$file"" -Algorithm $algorithm).Hash"
$hash = gsudo '(Get-FileHash "C:\My Secret.txt").Hash'
  • Feature: Improve elevation of WSL commands #55: [BREAKING CHANGE] Now prepend gsudo (.exe now optional) to elevate WSL commands, or use gsudo -d {cmd} to elevate CMD commands.

  • Feature: Add an option to bypass shell wrapper #80 Added -d/--direct to bypass the shell wrapper (i.e. powershell/bash/wsl) and treat the command to elevate as a Windows / CMD app.
    For example in gsudo -d notepad C:\file.txt launched from powershell (or wsl or git-bash/MinGW, for that matter) the -d indicates it is not a PS command, so gsudo doesn't need to launch a new PS instance (notepad is not a PS command, and there is no need to resolve it using PS aliases), and just let it find and launch notepad.exe from the path. It is also faster because launching powershell is slow on some systems.

Fixes

… syntax (i.e. gsudo cat /etc)

chore: build copies gsudo.extras content to the build output.
# Conflicts:
#	README.md
…ash script + Special shell detection.

Use 'gsudo.exe' to avoid, or 'gsudo -d'
@gerardog
Copy link
Owner Author

gerardog commented Aug 2, 2021

To try it, please open a CMD as administrator, then:
choco install gsudo --version=1.0.0-draft1 --pre

(then do gsudo -v and check for v1 to be sure you are running the latest)

Please, be sure gsudo is not running or else the update will fail.

Any issues? leave feedback below or page me on twitter @gerardo_gr

@gerardog
Copy link
Owner Author

gerardog commented Aug 2, 2021

The new syntax is documented here:
https://github.com/gerardog/gsudo/tree/next

Diff with previous

@gerardog
Copy link
Owner Author

gerardog commented Aug 2, 2021

We can also chat on gitter: https://gitter.im/gsudo/community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant