The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
PowerShell Git Tool Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
PowerShell: https://github.com/dahlbyk/posh-git/blob/master/src/GitPromp...
I believe this is clean Bash code and clean PowerShell code, and a script with a certain complexity. The functions inside the Bash script are documented using comments, the ones inside the PowerShell script are documented using "structured comments" (similar to javadoc/xmldoc/...). The parameters of the functions inside the PowerShell script also contain metadata which is used to provide completion on the commandline and similar functionality as the command line flags you demonstrated.
I just learned about 'getopts' in Bash, which you can actually also use to implement parameters to a Bash function. So what you are showing on a script level, can also be applied for functions. Did not know about that.
Still, not saying PowerShell is better than Bash in a Linux context, but it seems a lot of Linux users have a gut reaction to right out reject PowerShell. I think it does have some advantages for certain use cases, like more complex scripts, a cross-platform context, ... and of course, for someone with a .NET background it's easier to program more complex things with it.
PowerShell Git Tools related posts
- Stuck trying to execute a ps1 from my github repo
- Repos and PowerShell
- posh-git
- Adding Git autocomplete to PowerShell (Windows)
- I just discovered aliases and I'm looking for more.
- How to increase productivity at work with a pretty Windows Terminal and smart Powerline tools
- A Deno-licious Workflow
-
A note from our sponsor - WorkOS
workos.com | 25 Apr 2024
Index
Project | Stars | |
---|---|---|
1 | posh-git | 7,404 |
Sponsored