Command Line Interface plugin.
Type Definitions
-
Registry
-
A collection of commands for the CLI.
Properties:
Name Type Description chart2musicCIQ.CLI~SingleRegistryItem cmdlistCIQ.CLI~SingleRegistryItem customerCIQ.CLI~SingleRegistryItem chartstateCIQ.CLI~SingleRegistryItem dataCIQ.CLI~SingleRegistryItem drawinglineCIQ.CLI~SingleRegistryItem drawingtextCIQ.CLI~SingleRegistryItem exportCIQ.CLI~SingleRegistryItem findsymbolCIQ.CLI~SingleRegistryItem helpCIQ.CLI~SingleRegistryItem homeCIQ.CLI~SingleRegistryItem infoCIQ.CLI~SingleRegistryItem layoutCIQ.CLI~SingleRegistryItem periodicityCIQ.CLI~SingleRegistryItem pollingCIQ.CLI~SingleRegistryItem preferencesCIQ.CLI~SingleRegistryItem rangeCIQ.CLI~SingleRegistryItem resetCIQ.CLI~SingleRegistryItem seriesCIQ.CLI~SingleRegistryItem yaxisCIQ.CLI~SingleRegistryItem studyCIQ.CLI~SingleRegistryItem symbolCIQ.CLI~SingleRegistryItem typeCIQ.CLI~SingleRegistryItem versionCIQ.CLI~SingleRegistryItem -
SingleRegistryItem
-
CLI command registry entry type
Type:
- object
Properties:
Name Type Argument Description funcfunction The function to execute for the command.
manstring <optional>
The cmd documentation, "manpage"
optsstring <optional>
Command line options for the command. Use a colon to indicate an option that requires a value.
usagestring <optional>
Usage string for the command.
aiobject <optional>
AI-specific metadata for tool generation.
Properties
Name Type Argument Description descriptionstring <optional>
Description of the AI tool for LLM consumption.
parametersArray.<object> <optional>
Array of parameter definitions for the AI tool.
parameters[].typestring <optional>
Parameter type (e.g., "string", "number").
parameters[].namestring <optional>
Parameter name.
parameters[].descriptionstring <optional>
Parameter description.
parameters[].requiredboolean <optional>
Whether the parameter is required.
parameters[].enumArray.<string> <optional>
Array of valid values for the parameter.
parameters[].examplesArray.<string> <optional>
Array of example values for the parameter.
parameters[].patternstring <optional>
Regex pattern or format description for validation.
funcfunction | string <optional>
Function that transforms AI parameters into CLI commands, or "cli" to use the default CLI function.
Examples
{ func: async function func() { if (func.opts.e) { await this.stdio.stdout("Example option"); } await this.stdio.stdout("Example command"); }, man: "Example command description", opts: "e", usage: "example [-e]", ai: { description: "AI tool description", parameters: [ { type: "string", name: "paramName", description: "Parameter description", required: true } ], func: "cli" // or custom function: (param) => "command " + param } }{ func: async function func(arg) { if (this.stdio.stdin.isPiped) { let chunk, input = ""; while ((chunk = await this.stdio.stdin()) !== null) { input += chunk; } // Logic for processing input (e.g. JSON.parse) goes here await this.stdio.stdout("Processed piped data"); } else { await this.stdio.stdout("No piped data received"); } }, man: "A command that consumes stdin from a pipe.", usage: "mycommand [arg]" }
