Skip to content

global-git-clone is a command line tool that allows you to clone git repositories to your projects directory following a specific naming convention.

License

Notifications You must be signed in to change notification settings

NatoNathan/global-git-clone

Repository files navigation

global-git-clone

I just released global_clone, a Rust implementation of this project. I would recommend that over this one. However I will keep this one somewhat maintained, and will accept issues and pull requests.

global-git-clone is a command line tool that allows you to clone git repositories to your projects directory following a specific naming convention.

Usage

$ npm install -g global-git-clone
$ global-git-clone COMMAND
running command...
$ global-git-clone (--version)
global-git-clone/0.1.1-beta.21 darwin-x64 node-v16.13.0
$ global-git-clone --help [COMMAND]
USAGE
  $ global-git-clone COMMAND
...

Commands

global-git-clone autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ global-git-clone autocomplete [SHELL] [-r]

ARGUMENTS
  SHELL  shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  display autocomplete installation instructions

EXAMPLES
  $ global-git-clone autocomplete

  $ global-git-clone autocomplete bash

  $ global-git-clone autocomplete zsh

  $ global-git-clone autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

global-git-clone clone <repo>

Clone a repository from a remote url, to your local projects directory.

USAGE
  $ global-git-clone clone <repo>
  $ global-git-clone clone <repo> --template <template>

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -t, --template=<value>                  [default: default] template name or string
  -v, --verbose                           verbose output

DESCRIPTION
  Clone a repository from a remote url, to your local projects directory.

EXAMPLES
  $ global-git-clone clone [email protected]:natonathan/global-git-clone.git

  $ global-git-clone clone https://github.com/natonathan/global-git-clone.git --template sdk

  $ global-git-clone clone [email protected]:natonathan/global-git-clone.git --template "~/git/{provider}/{owner}/{repo}"

See code: dist/commands/clone.ts

global-git-clone config

Prints the current config file

USAGE
  $ global-git-clone config [-l debug|info|warn|error] [-v] [-c <value>] [-d]

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -v, --verbose                           verbose output

DESCRIPTION
  Prints the current config file

EXAMPLES
  $ global-git-clone config

See code: dist/commands/config/index.ts

global-git-clone help [COMMAND]

Display help for global-git-clone.

USAGE
  $ global-git-clone help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for global-git-clone.

See code: @oclif/plugin-help

global-git-clone template

List all available templates

USAGE
  $ global-git-clone template [-l debug|info|warn|error] [-v] [-c <value>] [-d] [--columns <value> | -x]
    [--sort <value>] [--filter <value>] [--output csv|json|yaml |  | [--csv | --no-truncate]] [--no-header | ]

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -v, --verbose                           verbose output
  -x, --extended                          show extra columns
  --columns=<value>                       only show provided columns (comma-separated)
  --csv                                   output is csv format [alias: --output=csv]
  --filter=<value>                        filter property by partial string matching, ex: name=foo
  --no-header                             hide table header from output
  --no-truncate                           do not truncate output to fit screen
  --output=<option>                       output in a more machine friendly format
                                          <options: csv|json|yaml>
  --sort=<value>                          property to sort by (prepend '-' for descending)

DESCRIPTION
  List all available templates

ALIASES
  $ global-git-clone template ls
  $ global-git-clone template list

EXAMPLES
  $ global-git-clone template

See code: dist/commands/template/index.ts

global-git-clone template add [NAME]

Add a new template

USAGE
  $ global-git-clone template add [NAME] [-l debug|info|warn|error] [-v] [-c <value>] [-d] [-f] [-n <value>] [-t
    <value>]

ARGUMENTS
  NAME  template name

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -f, --force
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -n, --name=<value>                      template name
  -t, --template=<value>                  template string
  -v, --verbose                           verbose output

DESCRIPTION
  Add a new template

EXAMPLES
  $ global-git-clone template add

global-git-clone template list

List all available templates

USAGE
  $ global-git-clone template list [-l debug|info|warn|error] [-v] [-c <value>] [-d] [--columns <value> | -x]
    [--sort <value>] [--filter <value>] [--output csv|json|yaml |  | [--csv | --no-truncate]] [--no-header | ]

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -v, --verbose                           verbose output
  -x, --extended                          show extra columns
  --columns=<value>                       only show provided columns (comma-separated)
  --csv                                   output is csv format [alias: --output=csv]
  --filter=<value>                        filter property by partial string matching, ex: name=foo
  --no-header                             hide table header from output
  --no-truncate                           do not truncate output to fit screen
  --output=<option>                       output in a more machine friendly format
                                          <options: csv|json|yaml>
  --sort=<value>                          property to sort by (prepend '-' for descending)

DESCRIPTION
  List all available templates

ALIASES
  $ global-git-clone template ls
  $ global-git-clone template list

EXAMPLES
  $ global-git-clone template list

global-git-clone template ls

List all available templates

USAGE
  $ global-git-clone template ls [-l debug|info|warn|error] [-v] [-c <value>] [-d] [--columns <value> | -x]
    [--sort <value>] [--filter <value>] [--output csv|json|yaml |  | [--csv | --no-truncate]] [--no-header | ]

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -v, --verbose                           verbose output
  -x, --extended                          show extra columns
  --columns=<value>                       only show provided columns (comma-separated)
  --csv                                   output is csv format [alias: --output=csv]
  --filter=<value>                        filter property by partial string matching, ex: name=foo
  --no-header                             hide table header from output
  --no-truncate                           do not truncate output to fit screen
  --output=<option>                       output in a more machine friendly format
                                          <options: csv|json|yaml>
  --sort=<value>                          property to sort by (prepend '-' for descending)

DESCRIPTION
  List all available templates

ALIASES
  $ global-git-clone template ls
  $ global-git-clone template list

EXAMPLES
  $ global-git-clone template ls

global-git-clone template remove [NAME]

Remove a template

USAGE
  $ global-git-clone template remove [NAME] [-l debug|info|warn|error] [-v] [-c <value>] [-d] [-n <value>]

ARGUMENTS
  NAME  template name

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -n, --name=<value>                      template name
  -v, --verbose                           verbose output

DESCRIPTION
  Remove a template

ALIASES
  $ global-git-clone template rm

EXAMPLES
  $ global-git-clone template remove

global-git-clone template rm [NAME]

Remove a template

USAGE
  $ global-git-clone template rm [NAME] [-l debug|info|warn|error] [-v] [-c <value>] [-d] [-n <value>]

ARGUMENTS
  NAME  template name

FLAGS
  -c, --config=<value>                    custom config file
  -d, --dry-run                           dry run
  -l, --loglevel=(debug|info|warn|error)  [default: info] log level
  -n, --name=<value>                      template name
  -v, --verbose                           verbose output

DESCRIPTION
  Remove a template

ALIASES
  $ global-git-clone template rm

EXAMPLES
  $ global-git-clone template rm

About

global-git-clone is a command line tool that allows you to clone git repositories to your projects directory following a specific naming convention.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •