do you receive https github URLs, but need SSH ones? this fixes that.
or npm install -g
from within where you clone this if you roll that way.
This is expected to be installed to your $PATH, and used as a single use parser in larger scripts via |
.
Pass in a https github url, Get a ssh one back.
echo "https://github.com/Wealthforge-Technologies/dequalify.git" | sshnothttps
for example would return
[email protected]:Wealthforge-Technologies/dequalify.git
You can add -h
to reverse it:
echo "[email protected]:Wealthforge-Technologies/dequalify.git" | sshnothttps -h
for example would return https://github.com/Wealthforge-Technologies/dequalify.git
.
you might think this looks an awful lot like dequalify, and you'd be right. It's easier to write parsers like this than in bash.