go-loader-git

1.0.1 • Public • Published

go-loader-git npm

Go loader for git repositories

Usage

$ npm install --global go go-loader-git
$ go :git [service] repo/name [dest]

Services

You can use on of 3 git hosts:

  • GitHub: $ go :git github repo/name
  • Bitbucket: $ go :git bitbucket repo/name
  • GitLab: $ go :git gitlab repo/name

If you avoid using service name in a command — github will be used by default.

Destination folder

If destination path is specified, it will be created in case it is not exists yet, and loaded files will be stored in there. And if path is not specified, it is extracted out of the repository name.

# in /Users/gocli/

# ensures that /Users/gocli/sources/new-project/ exists and loads files in there
$ go :git username/repository-name sources/new-project

# ensures that /Users/gocli/repository-name/ exists and loads files in there
$ go :git username/repository-name

Syntax

This plugin supports two syntaxes, colon and spaced:

# both commands does the same job
$ go :git bitbucket repo/name dest
$ go :git:bitbucket:repo/name:dest

And they can be mixed...

$ go :git:github repo/name
$ go :git:repo/name # github service will be used as a default value
$ go :git:repo/name dest

License

MIT © Stanislav Termosa

Install

npm i go-loader-git@1.0.1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • termosa