File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed
lib/interface/cli/commands Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ const { sdk } = require('../../../../logic');
33const Agent = require ( '../../../../logic/entities/Agent' ) ;
44const Output = require ( '../../../../output/Output' ) ;
55const _ = require ( 'lodash' ) ;
6- const colors = require ( 'colors' ) ;
76const { ignoreHttpError } = require ( '../../helpers/general' ) ;
8- const { getTestPipelineLink, INSTALLATION_DEFAULTS } = require ( '../hybrid/helper' ) ;
97
108const getRoot = require ( '../root/get.cmd' ) ;
119
@@ -40,12 +38,6 @@ const command = new Command({
4038 } ) ;
4139 }
4240 Output . print ( _ . map ( agents , Agent . fromResponse ) ) ;
43- const pipelineLink = await getTestPipelineLink ( INSTALLATION_DEFAULTS . DEMO_PIPELINE_NAME , false ) ;
44- if ( pipelineLink ) {
45- // eslint-disable-next-line max-len
46- console . log ( `\nTest pipeline with the name: '${ colors . cyan ( INSTALLATION_DEFAULTS . DEMO_PIPELINE_NAME ) } ' exists for this account.` +
47- `\nWatch it here: ${ colors . blue ( pipelineLink ) } ` ) ;
48- }
4941 } ,
5042} ) ;
5143
Original file line number Diff line number Diff line change 11const Command = require ( '../../Command' ) ;
22const runnerRoot = require ( '../root/runner.cmd' ) ;
33const getAgents = require ( '../agent/get.cmd' ) ;
4+ const { getTestPipelineLink, INSTALLATION_DEFAULTS } = require ( '../hybrid/helper' ) ;
5+ const colors = require ( 'colors' ) ;
46
57
68const command = new Command ( {
@@ -13,6 +15,12 @@ const command = new Command({
1315 } ,
1416 handler : async ( ) => {
1517 await getAgents . handler ( { } ) ;
18+ const pipelineLink = await getTestPipelineLink ( INSTALLATION_DEFAULTS . DEMO_PIPELINE_NAME , false ) ;
19+ if ( pipelineLink ) {
20+ // eslint-disable-next-line max-len
21+ console . log ( `\nTest pipeline with the name: '${ colors . cyan ( INSTALLATION_DEFAULTS . DEMO_PIPELINE_NAME ) } ' exists for this account.` +
22+ `\nWatch it here: ${ colors . blue ( pipelineLink ) } ` ) ;
23+ }
1624 } ,
1725} ) ;
1826
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ const {
2323} = require ( './helper' ) ;
2424
2525
26-
2726const handleError = createErrorHandler ( `\nIf you had any issues with the installation please report them at: ${ colors . blue ( 'https://github.com/codefresh-io/cli/issues/new' ) } ` ) ;
2827
2928async function createAndRunTestPipeline ( runtimeName , errHandler , progressReporter ) {
@@ -219,7 +218,7 @@ const initCmd = new Command({
219218 message = `Change the current default runtime ${ defaultRe . metadata . name } to new runtime ?` ;
220219 }
221220 }
222-
221+
223222 questions . push ( {
224223 type : 'confirm' ,
225224 name : 'shouldMakeDefaultRe' ,
@@ -234,7 +233,7 @@ const initCmd = new Command({
234233 type : 'confirm' ,
235234 name : 'shouldExecutePipeline' ,
236235 default : INSTALLATION_DEFAULTS . RUN_DEMO_PIPELINE ,
237- message : 'Run demo pipeline after install? (Y/N) ' ,
236+ message : 'Run demo pipeline after install?' ,
238237 } ) ;
239238 }
240239
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.64.6 " ,
3+ "version" : " 0.64.7 " ,
44 "description" : " Codefresh command line utility" ,
55 "main" : " index.js" ,
66 "preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments