[git.clone-repo]
git.clone-repo is a slot in the git namespace, in Hyperlambda, the language of Magic Cloud. Clones a Git repository.
- Value (
git-url), required: Repository URL to clone - Returns: Resolves to the git clone command output
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[path] |
string | no | Destination repository folder. |
[branch] |
string | no | Branch to clone. |
[depth] |
int | no | Shallow clone depth. |
Guide: How to use [git.clone-repo]
JSON declaration
This is the complete declaration of git.clone-repo, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "git.clone-repo",
"description": "Clones a Git repository",
"signature": {
"input": {
"kind": "git-url",
"description": "Repository URL to clone",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"path": {
"type": "string",
"kind": "git-repo-path",
"description": "Destination repository folder",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"role": "Option",
"projection": "Value"
},
"branch": {
"type": "string",
"kind": "git-branch",
"description": "Branch to clone",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"role": "Option",
"projection": "Value"
},
"depth": {
"type": "int",
"description": "Shallow clone depth",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"role": "Option",
"projection": "Value"
}
},
"output": {
"mode": "Value",
"kind": "git-response,text",
"description": "Resolves to the git clone command output"
}
}
}
← git.checkout |
all git.* slots |
git.commit → |