← All procedures
git.tag.add
Make a tag. With a message, the tag is annotated. An existing tag is an error
CLI- Package
- @procedures/git · README
- Path
["git","tag","add"]- CLI
mark git tag add --name <string>- As data
{"$proc":["git","tag","add"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/git/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["git","tag","add"], { name: "<name>" });
console.log(JSON.stringify(result));From the command line
$ mark git tag add --name <string>
As data, in a program
{ "$proc": ["git", "tag", "add"], "input": { "name": "<name>" } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The tag name"
},
"ref": {
"description": "The commit of the tag (default: HEAD)",
"type": "string"
},
"message": {
"description": "The message: with it, the tag is an annotated tag",
"type": "string"
},
"cwd": {
"description": "Working directory",
"type": "string"
}
},
"required": [
"name"
]
},
"output": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The tag name"
},
"hash": {
"type": "string",
"description": "The commit of the tag"
},
"annotated": {
"type": "boolean",
"description": "True for an annotated tag"
}
},
"required": [
"name",
"hash",
"annotated"
],
"additionalProperties": {}
}
}