Files
Rauhul Varma b551ec8c04 Add completion kind and help command to ToolInfo (#697)
Updates ToolInfo to include the built-in `help` subcommand and also
include details on each argument's completion method if any.
2025-02-06 08:55:56 -08:00

129 lines
2.9 KiB
JSON

{
"command" : {
"abstract" : "Print the sum of the values.",
"arguments" : [
{
"abstract" : "Use hexadecimal notation for the result.",
"isOptional" : true,
"isRepeating" : false,
"kind" : "flag",
"names" : [
{
"kind" : "long",
"name" : "hex-output"
},
{
"kind" : "short",
"name" : "x"
}
],
"preferredName" : {
"kind" : "long",
"name" : "hex-output"
},
"shouldDisplay" : true,
"valueName" : "hex-output"
},
{
"abstract" : "A group of integers to operate on.",
"isOptional" : true,
"isRepeating" : true,
"kind" : "positional",
"shouldDisplay" : true,
"valueName" : "values"
},
{
"abstract" : "Show the version.",
"isOptional" : true,
"isRepeating" : false,
"kind" : "flag",
"names" : [
{
"kind" : "long",
"name" : "version"
}
],
"preferredName" : {
"kind" : "long",
"name" : "version"
},
"shouldDisplay" : true,
"valueName" : "version"
},
{
"abstract" : "Show help information.",
"isOptional" : true,
"isRepeating" : false,
"kind" : "flag",
"names" : [
{
"kind" : "short",
"name" : "h"
},
{
"kind" : "long",
"name" : "help"
}
],
"preferredName" : {
"kind" : "long",
"name" : "help"
},
"shouldDisplay" : true,
"valueName" : "help"
}
],
"commandName" : "add",
"shouldDisplay" : true,
"subcommands" : [
{
"abstract" : "Show subcommand help information.",
"arguments" : [
{
"isOptional" : true,
"isRepeating" : true,
"kind" : "positional",
"shouldDisplay" : true,
"valueName" : "subcommands"
},
{
"isOptional" : true,
"isRepeating" : false,
"kind" : "flag",
"names" : [
{
"kind" : "short",
"name" : "h"
},
{
"kind" : "long",
"name" : "help"
},
{
"kind" : "longWithSingleDash",
"name" : "help"
}
],
"preferredName" : {
"kind" : "long",
"name" : "help"
},
"shouldDisplay" : false,
"valueName" : "help"
}
],
"commandName" : "help",
"shouldDisplay" : true,
"superCommands" : [
"math",
"add"
]
}
],
"superCommands" : [
"math"
]
},
"serializationVersion" : 0
}