2.0.0 - Several New Features!
This is the 2.0.0 release of SshRunAs. This is version 2.0.0 because of a potential breaking change if anyone looks at the exit codes of SshRunAs.
This release focuses on new features. The list of new features is below:
Changelog
Lock files
By passing in the -f or --lock_file argument, you can specify where SshRunAs drops a lock file. If a lock file already exists at that location, SshRunAs will not run the command, an exit with an exit code of 16. The lockfile will go away if a user sends CTRL+C to the process or the command completes. Sending CTRL+BREAK (or CTRL + Scroll Lock) will NOT delete the lockfile, and it must be removed manually.
Console Colors
SshRunsAs output will now output in a yellow color, errors show up in a red color. To disable colors, pass in the --no_color argument.
Exit Codes
The exit codes meaning has changed. While SshRunAs will exit with the same exit code as the command that was run on the remove server when a command completes, there are times where SshRunAs will fail, and in these cases, it will report the following exit codes:
- 0 - Command ran successfully
- 13 - Unhandled/Unknown Exception
- 14 - Invalid Arguments passed in.
- 15 - Command Cancelled.
- 16 - Lockfile detected, command not run.
Note: These numbers were chosen because they seem like numbers most applications
will not use when exiting; thus one should be able to tell if the exit code was because of SshRunAs itself,
or the command it ran. However, if the command that was run on the remove server just so happens
to match the above error codes, one won't be able to tell the difference between SshRunAs having an issue, or the command that was run.
Icon
There is now an icon on the .exe file. ....I'm not saying its a good icon, but it is one!
Chocolatey Package Embedded MSI
The chocolatey package now has the msi file embedded directly in it, instead of downloading it from a URL (assuming the chocolatey team doesn't reject that).
Dry Run
If --dryrun, --dry_run, --whatif, and/or --noop is passed into SshRunAs, SshRunAs will print the command it was going to send, and then exit with an exit code of 0. No socket connections or any of that stuff are made.
Downloads
- NuGet
- Chocolatey Note: Moderation may need to finish first
- Msi
- sha256: 027246ead46722e03efa6fd4e840153705cddbddbca9f0b1b352bd1410783858