Skip to content

Commit 25ee085

Browse files
committed
fix(help): improve help output. fixes #165
1 parent 3fc3ed8 commit 25ee085

File tree

5 files changed

+9
-131
lines changed

5 files changed

+9
-131
lines changed

README.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ $ aio config:set cloudmanager_environmentid 7
104104
105105
# Commands
106106
<!-- commands -->
107-
* [`aio cloudmanager`](#aio-cloudmanager)
108107
* [`aio cloudmanager:current-execution:advance PIPELINEID`](#aio-cloudmanagercurrent-executionadvance-pipelineid)
109108
* [`aio cloudmanager:current-execution:cancel PIPELINEID`](#aio-cloudmanagercurrent-executioncancel-pipelineid)
110109
* [`aio cloudmanager:current-execution:get PIPELINEID`](#aio-cloudmanagercurrent-executionget-pipelineid)
@@ -129,57 +128,6 @@ $ aio config:set cloudmanager_environmentid 7
129128
* [`aio cloudmanager:program:list-environments`](#aio-cloudmanagerprogramlist-environments)
130129
* [`aio cloudmanager:program:list-pipelines`](#aio-cloudmanagerprogramlist-pipelines)
131130

132-
## `aio cloudmanager`
133-
134-
interact with the Cloud Manager API to list, start, cancel, and inspect pipelines and executions.
135-
136-
```
137-
USAGE
138-
$ aio cloudmanager
139-
140-
OPTIONS
141-
-r, --passphrase=passphrase the passphrase for the private key
142-
143-
EXAMPLES
144-
$ aio cloudmanager:list-programs
145-
$ aio cloudmanager:list-programs --enabledonly
146-
$ aio cloudmanager:program:list-pipelines
147-
$ aio cloudmanager:program:list-pipelines --programId=PROGRAM_ID
148-
$ aio cloudmanager:pipeline:start-execution PIPELINE_ID
149-
$ aio cloudmanager:pipeline:start-execution --programId=PROGRAM_ID PIPELINE_ID
150-
$ aio cloudmanager:program:list-current-executions
151-
$ aio cloudmanager:program:list-current-executions --programId=PROGRAM_ID
152-
$ aio cloudmanager:pipeline:get-current-execution PIPELINE_ID
153-
$ aio cloudmanager:pipeline:get-current-execution --programId=PROGRAM_ID PIPELINE_ID
154-
$ aio cloudmanager:execution:get-quality-gate-results PIPELINE_ID [codeQuality|security|performance]
155-
$ aio cloudmanager:execution:get-quality-gate-results --programId=PROGRAM_ID PIPELINE_ID
156-
[codeQuality|security|performance]
157-
$ aio cloudmanager:execution:get-step-details PIPELINE_ID EXECUTION_ID
158-
$ aio cloudmanager:execution:get-step-details --programId=PROGRAM_ID PIPELINE_ID EXECUTION_ID
159-
$ aio cloudmanager:execution:get-step-log PIPELINE_ID
160-
$ aio cloudmanager:execution:get-step-log --programId=PROGRAM_ID PIPELINE_ID
161-
[build|codeQuality|devDeploy|stageDeploy|prodDeploy]
162-
$ aio cloudmanager:current-execution:cancel PIPELINE_ID
163-
$ aio cloudmanager:current-execution:cancel --programId=PROGRAM_ID PIPELINE_ID
164-
$ aio cloudmanager:current-execution:advance PIPELINE_ID
165-
$ aio cloudmanager:current-execution:advance --programId=PROGRAM_ID PIPELINE_ID
166-
$ aio cloudmanager:pipeline:delete PIPELINE_ID
167-
$ aio cloudmanager:pipeline:delete --programId=PROGRAM_ID PIPELINE_ID
168-
$ aio cloudmanager:pipeline:update PIPELINE_ID --branch=NEW_BRANCH
169-
$ aio cloudmanager:pipeline:update --programId=PROGRAM_ID PIPELINE_ID --branch=NEW_BRANCH
170-
$ aio cloudmanager:program:list-environments
171-
$ aio cloudmanager:program:list-environments --programId=PROGRAM_ID
172-
$ aio cloudmanager:environment:list-available-log-options ENVIRONMENT_ID
173-
$ aio cloudmanager:environment:list-available-log-options --programId=PROGRAM_ID ENVIRONMENT_ID
174-
$ aio cloudmanager:environment:download-logs ENVIRONMENT_ID SERVICE NAME
175-
$ aio cloudmanager:environment:download-logs ENVIRONMENT_ID SERVICE NAME DAYS
176-
$ aio cloudmanager:environment:download-logs --programId=PROGRAM_ID ENVIRONMENT_ID SERVICE NAME DAYS
177-
$ aio cloudmanager:environment:tail-log ENVIRONMENT_ID SERVICE NAME
178-
$ aio cloudmanager:environment:tail-log --programId=PROGRAM_ID ENVIRONMENT_ID SERVICE NAME
179-
```
180-
181-
_See code: [src/commands/cloudmanager/index.js](https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/0.18.0/src/commands/cloudmanager/index.js)_
182-
183131
## `aio cloudmanager:current-execution:advance PIPELINEID`
184132

185133
advance current pipeline execution either by overriding a waiting quality gate or advancing the approval step

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
"repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>",
6565
"hooks": {
6666
"prerun": "./src/hooks/prerun/environment-id-from-config"
67+
},
68+
"topics" : {
69+
"cloudmanager": { "description": "interact with the Cloud Manager API to interact with programs, pipelines, and environments." },
70+
"cloudmanager:current-execution" : { "description" : "commands to work with the current execution for a pipeline" },
71+
"cloudmanager:execution" : { "description" : "commands to work with executions for a pipeline" },
72+
"cloudmanager:environment" : { "description" : "commands to work with environments" },
73+
"cloudmanager:pipeline" : { "description" : "commands to work with pipelines" },
74+
"cloudmanager:program" : { "description" : "commands to work with programs" }
6775
}
6876
},
6977
"main": "src/index.js",

src/commands/cloudmanager/index.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const StartExecutionCommand = require('./commands/cloudmanager/pipeline/create-e
1616
const GetCurrentExecution = require('./commands/cloudmanager/current-execution/get')
1717
const ListCurrentExecutions = require('./commands/cloudmanager/program/list-current-executions')
1818
const GetQualityGateResults = require('./commands/cloudmanager/execution/get-quality-gate-results')
19-
const CloudManagerCommand = require('./commands/cloudmanager')
2019
const CancelCurrentExecution = require('./commands/cloudmanager/current-execution/cancel')
2120
const AdvanceCurrentExecution = require('./commands/cloudmanager/current-execution/advance')
2221
const ListEnvironments = require('./commands/cloudmanager/program/list-environments')
@@ -36,7 +35,6 @@ const SetPipelineVariables = require('./commands/cloudmanager/pipeline/set-varia
3635
const DeleteEnvironment = require('./commands/cloudmanager/environment/delete')
3736

3837
module.exports = {
39-
aaa: CloudManagerCommand, // needs to be first alphabetically
4038
'list-programs': new ListProgramsCommand().listPrograms,
4139
'list-pipelines': new ListPipelinesCommand().listPipelines,
4240
'start-execution': new StartExecutionCommand().startExecution,

test/commands/aliases.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function loadCommandNames (manifest) {
2323
}
2424

2525
test('all commands from 0.15.0 have aliases', async () => {
26-
const oldCommandNames = loadCommandNames(require('../data/oclif.manifest.0.15.0.json'))
26+
const oldCommandNames = loadCommandNames(require('../data/oclif.manifest.0.15.0.json')).filter(name => name !== 'cloudmanager')
2727

2828
const root = path.resolve('.')
2929
const thisPlugin = new Config.Plugin({ root, type: 'core', ignoreManifest: true, errorOnManifestCreate: true })

0 commit comments

Comments
 (0)