Skip to content

Commit 37e955f

Browse files
fix runner info (#479)
1 parent 29344f7 commit 37e955f

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

lib/interface/cli/commands/agent/get.cmd.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ const { sdk } = require('../../../../logic');
33
const Agent = require('../../../../logic/entities/Agent');
44
const Output = require('../../../../output/Output');
55
const _ = require('lodash');
6-
const colors = require('colors');
76
const { ignoreHttpError } = require('../../helpers/general');
8-
const { getTestPipelineLink, INSTALLATION_DEFAULTS } = require('../hybrid/helper');
97

108
const 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

lib/interface/cli/commands/hybrid/info.cmd.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const Command = require('../../Command');
22
const runnerRoot = require('../root/runner.cmd');
33
const getAgents = require('../agent/get.cmd');
4+
const { getTestPipelineLink, INSTALLATION_DEFAULTS } = require('../hybrid/helper');
5+
const colors = require('colors');
46

57

68
const 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

lib/interface/cli/commands/hybrid/init.cmd.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const {
2323
} = require('./helper');
2424

2525

26-
2726
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')}`);
2827

2928
async 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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,

0 commit comments

Comments
 (0)