CommandHelper Module
Contains helpers which allow to interact with [git](http://git-scm.com/) via the command line.
Functions and values
Function or value | Description |
Full Usage:
CommandHelper.directRunGitCommand repositoryDir command
Parameters:
string
-
The repository directory to execute command in
command : string
-
The GIT command to execute
Returns: bool
|
|
Full Usage:
CommandHelper.directRunGitCommandAndFail repositoryDir command
Parameters:
string
-
The repository directory to execute command in
command : string
-
The GIT command to execute
|
|
Full Usage:
CommandHelper.findGitDir repositoryDir
Parameters:
string
Returns: DirectoryInfo
|
|
Full Usage:
CommandHelper.fireAndForgetGitCommand repositoryDir command
Parameters:
string
-
The repository directory to execute command in
command : string
-
The GIT command to execute
|
|
Full Usage:
CommandHelper.fixPath path
Parameters:
string
Returns: string
|
|
Full Usage:
CommandHelper.getGitResult repositoryDir command
Parameters:
string
-
The repository directory to execute command in
command : string
-
The GIT command to execute
Returns: string list
|
|
Full Usage:
CommandHelper.gitCommand repositoryDir command
Parameters:
string
command : string
|
Runs the given git command, waits for its completion. The repository directory to execute command in The GIT command to execute
|
Full Usage:
CommandHelper.gitCommandf repositoryDir fmt
Parameters:
string
fmt : StringFormat<'a, unit>
Returns: 'a
|
Runs git.exe with the given formatted command The repository directory to execute command in The GIT command to execute
|
Full Usage:
CommandHelper.gitPath
Returns: string
|
|
|
|
Full Usage:
CommandHelper.runGitCommand repositoryDir command
Parameters:
string
-
The repository directory to execute command in
command : string
-
The GIT command to execute
Returns: bool * string list * string
|
|
Full Usage:
CommandHelper.runGitCommandf fmt
Parameters:
StringFormat<'a, (string -> bool * string list * string)>
-
The formatted GIT command string to execute
Returns: 'a
|
|
Full Usage:
CommandHelper.runSimpleGitCommand repositoryDir command
Parameters:
string
command : string
Returns: string
|
Runs the git command and returns the first line of the result. The repository directory to execute command in The GIT command to execute
|
Full Usage:
CommandHelper.showGitCommand repositoryDir command
Parameters:
string
command : string
|
Runs the given git command, waits for its completion. This version doesn't throw an exception if an error occurs. It just traces the error. The repository directory to execute command in The GIT command to execute
|