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');
3
3
const Agent = require ( '../../../../logic/entities/Agent' ) ;
4
4
const Output = require ( '../../../../output/Output' ) ;
5
5
const _ = require ( 'lodash' ) ;
6
- const colors = require ( 'colors' ) ;
7
6
const { ignoreHttpError } = require ( '../../helpers/general' ) ;
8
- const { getTestPipelineLink, INSTALLATION_DEFAULTS } = require ( '../hybrid/helper' ) ;
9
7
10
8
const getRoot = require ( '../root/get.cmd' ) ;
11
9
@@ -40,12 +38,6 @@ const command = new Command({
40
38
} ) ;
41
39
}
42
40
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
- }
49
41
} ,
50
42
} ) ;
51
43
Original file line number Diff line number Diff line change 1
1
const Command = require ( '../../Command' ) ;
2
2
const runnerRoot = require ( '../root/runner.cmd' ) ;
3
3
const getAgents = require ( '../agent/get.cmd' ) ;
4
+ const { getTestPipelineLink, INSTALLATION_DEFAULTS } = require ( '../hybrid/helper' ) ;
5
+ const colors = require ( 'colors' ) ;
4
6
5
7
6
8
const command = new Command ( {
@@ -13,6 +15,12 @@ const command = new Command({
13
15
} ,
14
16
handler : async ( ) => {
15
17
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
+ }
16
24
} ,
17
25
} ) ;
18
26
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ const {
23
23
} = require ( './helper' ) ;
24
24
25
25
26
-
27
26
const handleError = createErrorHandler ( `\nIf you had any issues with the installation please report them at: ${ colors . blue ( 'https://github.com/codefresh-io/cli/issues/new' ) } ` ) ;
28
27
29
28
async function createAndRunTestPipeline ( runtimeName , errHandler , progressReporter ) {
@@ -219,7 +218,7 @@ const initCmd = new Command({
219
218
message = `Change the current default runtime ${ defaultRe . metadata . name } to new runtime ?` ;
220
219
}
221
220
}
222
-
221
+
223
222
questions . push ( {
224
223
type : 'confirm' ,
225
224
name : 'shouldMakeDefaultRe' ,
@@ -234,7 +233,7 @@ const initCmd = new Command({
234
233
type : 'confirm' ,
235
234
name : 'shouldExecutePipeline' ,
236
235
default : INSTALLATION_DEFAULTS . RUN_DEMO_PIPELINE ,
237
- message : 'Run demo pipeline after install? (Y/N) ' ,
236
+ message : 'Run demo pipeline after install?' ,
238
237
} ) ;
239
238
}
240
239
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.64.6 " ,
3
+ "version" : " 0.64.7 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments