@@ -6,14 +6,14 @@ const DEFAULTS = require('../../defaults');
66const { prepareKeyValueFromCLIEnvOption } = require ( '../../helpers/general' ) ;
77const Output = require ( '../../../../output/Output' ) ;
88const { sdk } = require ( '../../../../logic' ) ;
9- const Step = require ( '../../../../logic/entities/Step ' ) ;
9+ const StepType = require ( '../../../../logic/entities/StepType ' ) ;
1010
1111const getRoot = require ( '../root/get.cmd' ) ;
1212
1313
1414const command = new Command ( {
15- command : 'steps [id..]' ,
16- aliases : [ 'step' ] ,
15+ command : 'step-types [id..]' ,
16+ aliases : [ 'step-type ' ] ,
1717 parent : getRoot ,
1818 description : 'Get a specific step or an array of steps' ,
1919 webDocs : {
@@ -79,14 +79,14 @@ const command = new Command({
7979 for ( const id of ids ) {
8080 try {
8181 const currStep = await sdk . steps . get ( { name : id } ) ;
82- steps . push ( Step . fromResponse ( currStep ) ) ;
82+ steps . push ( StepType . fromResponse ( currStep ) ) ;
8383 } catch ( err ) {
8484 if ( steps . length ) {
8585 Output . print ( steps ) ;
8686 }
8787
8888 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' ;
9090 throw new CFError ( {
9191 cause : err ,
9292 message,
@@ -106,7 +106,7 @@ const command = new Command({
106106 official,
107107 tag,
108108 } ) ;
109- Output . print ( _ . map ( _ . get ( steps , 'docs' ) , Step . fromResponse ) ) ;
109+ Output . print ( _ . map ( _ . get ( steps , 'docs' ) , StepType . fromResponse ) ) ;
110110 }
111111 } ,
112112} ) ;
0 commit comments