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