Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/afeiship/git-url-cli

Get git http/https/ssh/git url.
https://github.com/afeiship/git-url-cli

actions cli git github gitlab guc pages pipline ssh url

Last synced: about 2 months ago
JSON representation

Get git http/https/ssh/git url.

Awesome Lists containing this project

README

        

# git-url-cli
> Get git http/https/ssh/git url.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![download][download-image]][download-url]

## installation
```shell
npm i -g @jswork/git-url-cli
```

## usage
```shell
guc
# https://github.com/afeiship/git-url-cli

# open the `url`
open `guc -u`
```
~~~
Options:
--version Show version number [boolean]
--url, -u Github/gitlab url. [boolean]
--ssh, -s Show `ssh` git url. [boolean]
--https, -h Show `https` git url. [boolean]
--pages, -p Show `gh_pages/pages` in github/gitlab. [boolean]
--mr, -m Show `merge request url` in gitlab. [boolean]
--actions, -a Show `actions/piplines` in github/gitlab. [boolean]
--help Show help [boolean]
~~~

```shell
$ guc -u
# https://github.com/afeiship/git-url-cli

$ guc -h
# https://github.com/afeiship/git-url-cli.git

$ guc -s
# [email protected]:afeiship/git-url-cli.git

$ guc -p
# https://afeiship.github.io/git-url-cli/

$ guc -a
# https://github.com/afeiship/git-url-cli/actions/new
```

## resources
- https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs

## license
Code released under [the MIT license](https://github.com/afeiship/git-url-cli/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/git-url-cli
[version-url]: https://npmjs.org/package/@jswork/git-url-cli

[license-image]: https://img.shields.io/npm/l/@jswork/git-url-cli
[license-url]: https://github.com/afeiship/git-url-cli/blob/master/LICENSE.txt

[download-image]: https://img.shields.io/npm/dm/@jswork/git-url-cli
[download-url]: https://www.npmjs.com/package/@jswork/git-url-cli