Skip to content

Wealthforge-Technologies/sshnothttps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This is a super simple utility script

do you receive https github URLs, but need SSH ones? this fixes that.

npm install -g sshnothttps.

or npm install -g from within where you clone this if you roll that way.

use

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

git@github.com:Wealthforge-Technologies/dequalify.git

You can add -h to reverse it: echo "git@github.com: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.

About

Take a https github address, and replace it with an ssh version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published