diff --git a/src/commands/action-flows/module.ts b/src/commands/action-flows/module.ts index b08f33e5..6536eaaa 100644 --- a/src/commands/action-flows/module.ts +++ b/src/commands/action-flows/module.ts @@ -11,7 +11,8 @@ import { SkillCommandService } from "./skill/skill-command.service"; class Module extends IModule { public register(context: Context, configurator: Configurator): void { - const analyzeCommand = configurator.command("analyze"); + const analyzeCommand = configurator.command("analyze") + .description("Analyze action flows and return its dependencies"); analyzeCommand.command("action-flows") .description("Analyze Action Flows dependencies for a certain package") .requiredOption("--packageId ", "ID of the package from which you want to export Action Flows") diff --git a/src/commands/data-pipeline/connection/connection.commands.ts b/src/commands/data-pipeline/connection/connection.commands.ts index 98c44d23..15ebda4c 100644 --- a/src/commands/data-pipeline/connection/connection.commands.ts +++ b/src/commands/data-pipeline/connection/connection.commands.ts @@ -16,14 +16,16 @@ export class ConnectionCommands { .requiredOption("--dataPoolId ", "ID of the data pool") .action(this.listConnections); - const getCommand = configurator.command("get"); + const getCommand = configurator.command("get") + .description("get data pool connection"); getCommand.command("connection") .description("Programmatically read properties of your connections") .requiredOption("--dataPoolId ", "Id of the data pool you want to update") .requiredOption("--connectionId ", "Id of the connection you want to update") .action(this.getCommandProperties); - const setCommand = configurator.command("set"); + const setCommand = configurator.command("set") + .description("set data pool connection"); setCommand.command("connection") .description("Programmatically update properties of your connections") .requiredOption("--dataPoolId ", "Id of the data pool you want to update") diff --git a/src/commands/data-pipeline/data-pool/data-pool.commands.ts b/src/commands/data-pipeline/data-pool/data-pool.commands.ts index 15c401fd..5bd72b8f 100644 --- a/src/commands/data-pipeline/data-pool/data-pool.commands.ts +++ b/src/commands/data-pipeline/data-pool/data-pool.commands.ts @@ -45,7 +45,8 @@ export class DataPoolCommands { .description("Command to push data pools") .action(this.pushDataPools); - const updateCommand = configurator.command("update"); + const updateCommand = configurator.command("update") + .description("Update data pool"); updateCommand.command("data-pool") .description("Command to update a data pool using a data pool configuration file") .requiredOption("--id ", "Id of the data pool you want to update") diff --git a/src/commands/deployment/module.ts b/src/commands/deployment/module.ts index 00f2220c..0cf9ead1 100644 --- a/src/commands/deployment/module.ts +++ b/src/commands/deployment/module.ts @@ -6,7 +6,8 @@ import { DeploymentService } from "./deployment.service"; class Module extends IModule { public register(context: Context, configurator: Configurator): void { - const deploymentCommand = configurator.command("deployment").beta(); + const deploymentCommand = configurator.command("deployment").beta() + .description("Create deployments, list their history, check active deployments, and retrieve deployables and targets"); deploymentCommand.command("create") .beta() @@ -18,7 +19,8 @@ class Module extends IModule { .option("--json", "Return the response as a JSON file") .action(this.createDeployment); - const listCommand = deploymentCommand.command("list").beta(); + const listCommand = deploymentCommand.command("list") + .description("List deployment history, active deployments, deployables or targets").beta(); listCommand.command("history") .beta() diff --git a/src/content-cli.ts b/src/content-cli.ts index b1ecfa41..c0749714 100644 --- a/src/content-cli.ts +++ b/src/content-cli.ts @@ -69,6 +69,10 @@ export function createProgram(context: Context, opts: CreateProgramOptions = {}) */ function configureRootCommands(configurator: Configurator): void { configurator.command("list").description("Commands to list content.").alias("ls"); + configurator.command("export").description("Export resource: action flow or data pool"); + configurator.command("import").description("Import resource: action flow or data pool"); + configurator.command("pull").description("Pull resource: skill, bookmark, view bookmark, data pool or asset"); + configurator.command("push").description("Push resource: asset, skill, bookmark, view bookmark, CTP or data pool"); } async function run(): Promise {