Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/interface/cli/commands/pipeline/run.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ const run = new Command({
describe: 'Pipeline name',
})
.option('memory', {
describe: 'Mention machine memory sizes during pipeline run',
describe: 'Mention machine memory sizes during pipeline run (value in Mi)',
coerce: value => `${value}Mi`,
})
.option('cpu', {
describe: 'Mention machine cpu sizes during pipeline run',
describe: 'Mention machine cpu sizes during pipeline run (value in m)',
coerce: value => `${value}m`,
})
.option('disk', {
describe: 'Mention machine disk space sizes during pipeline run',
describe: 'Mention machine disk space sizes during pipeline run (value in Gi)',
coerce: value => `${value}Gi`,
})
.option('pack-name', {
Expand Down Expand Up @@ -133,6 +133,7 @@ const run = new Command({
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master -v key1=value1 -v key2=value2', 'Setting variables through the command')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --var-file ./var_file.yml', 'Settings variables through a yml file')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --context context', 'Inject contexts to the pipeline execution')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME --memory '2000' --cpu 547 --disk 2', 'Specify resources during pipeline run')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.example('codefresh run PIPELINE_ID | PIPELINE_NAME --memory '2000' --cpu 547 --disk 2', 'Specify resources during pipeline run')
.example('codefresh run PIPELINE_ID | PIPELINE_NAME --memory \'2000\' --cpu 547 --disk 2', 'Specify resources during pipeline run')

.example('codefresh run PIPELINE_ID | PIPELINE_NAME --skip step1 step2 step3', 'Skip specific steps');

crudFilenameOption(yargs, {
Expand Down