@@ -6,14 +6,14 @@ const DEFAULTS = require('../../defaults');
6
6
const { prepareKeyValueFromCLIEnvOption } = require ( '../../helpers/general' ) ;
7
7
const Output = require ( '../../../../output/Output' ) ;
8
8
const { sdk } = require ( '../../../../logic' ) ;
9
- const Step = require ( '../../../../logic/entities/Step ' ) ;
9
+ const StepType = require ( '../../../../logic/entities/StepType ' ) ;
10
10
11
11
const getRoot = require ( '../root/get.cmd' ) ;
12
12
13
13
14
14
const command = new Command ( {
15
- command : 'steps [id..]' ,
16
- aliases : [ 'step' ] ,
15
+ command : 'step-types [id..]' ,
16
+ aliases : [ 'step-type ' ] ,
17
17
parent : getRoot ,
18
18
description : 'Get a specific step or an array of steps' ,
19
19
webDocs : {
@@ -79,14 +79,14 @@ const command = new Command({
79
79
for ( const id of ids ) {
80
80
try {
81
81
const currStep = await sdk . steps . get ( { name : id } ) ;
82
- steps . push ( Step . fromResponse ( currStep ) ) ;
82
+ steps . push ( StepType . fromResponse ( currStep ) ) ;
83
83
} catch ( err ) {
84
84
if ( steps . length ) {
85
85
Output . print ( steps ) ;
86
86
}
87
87
88
88
debug ( err . toString ( ) ) ;
89
- const message = err . toString ( ) . includes ( 'not find' ) ? `Step '${ id } ' was not found.` : 'Error occurred' ;
89
+ const message = err . toString ( ) . includes ( 'not find' ) ? `Step-type '${ id } ' was not found.` : 'Error occurred' ;
90
90
throw new CFError ( {
91
91
cause : err ,
92
92
message,
@@ -106,7 +106,7 @@ const command = new Command({
106
106
official,
107
107
tag,
108
108
} ) ;
109
- Output . print ( _ . map ( _ . get ( steps , 'docs' ) , Step . fromResponse ) ) ;
109
+ Output . print ( _ . map ( _ . get ( steps , 'docs' ) , StepType . fromResponse ) ) ;
110
110
}
111
111
} ,
112
112
} ) ;
0 commit comments