An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# mkghurl

[![CodeFactor](https://www.codefactor.io/repository/github/devlights/mkghurl/badge)](https://www.codefactor.io/repository/github/devlights/mkghurl)

Make github url from OS env variables.

The tool reads the following values:

- $GITHUB_USER
- $GITHUB_TOKEN

and 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
```