https://github.com/devlights/mkghurl
Make Github URL from OS env variables.
https://github.com/devlights/mkghurl
go golang
Last synced: 2 months ago
JSON representation
Make Github URL from OS env variables.
- Host: GitHub
- URL: https://github.com/devlights/mkghurl
- Owner: devlights
- License: mit
- Created: 2019-12-20T05:00:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T13:54:03.000Z (over 4 years ago)
- Last Synced: 2025-02-12T08:58:23.907Z (4 months ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mkghurl
[](https://www.codefactor.io/repository/github/devlights/mkghurl)
Make github url from OS env variables.
The tool reads the following values:
- $GITHUB_USER
- $GITHUB_TOKENand make url from the following url-pattern:
```html
https://$GITHUB_USER:[email protected]/$GITHUB_USER/repo-name.git
```## Install
```shell script
$ go get github.com/devlights/mkghurl
```## Run
```shell script
$ mkghurl repo-name
```with clipboard copy
```shell script
$ go get github.com/atotto/clipboard/cmd/gocopy
$ mkghurl repo-name | gocopy
```or
```shell script
$ mkghurl -n repo-name | xargs git clone
```