Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/cli/invocation/command/addCloneCommand"

Index

Variables

Const GitCloneArgs

GitCloneArgs: string[] = ["b",// "bare", -- We don't support this as it's impossible to install git hooks on a bare repo"depth","directory","dissocate","jobs","l","mirror","n","no-hardlinks","no-shallow-submodules","no-single-branch","no-tags","o","q","recurse-submodules","reference","repository","s","separate-git-dir","shallow-submodules","single-branch","template","upload-pack",]

Const GitRemoteParser

GitRemoteParser: Microgrammar<object> = Microgrammar.fromString<{ base: string, owner: string, repo: string }>(// tslint:disable-next-line:no-invalid-template-strings"${base}${sep}${owner}/${repo}${dotgit}", {base: /(git@|https?:\/\/)[^:\/]+/,sep: /[:\/]/,owner: /[^\s\.\/]+/,repo: /[^\s\.]+/,dotgit: optional(".git"),},)

Parse a command line to git clone, e.g. git clone https://github.com/owner/repo

type

{Microgrammar<{base: string; owner: string; repo: string}>}

Functions

addCloneCommand

superclone

Generated using TypeDoc