Skip to content

Commit

Permalink
#987: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jun 27, 2023
1 parent 9e2f013 commit 09fad8c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,26 @@ yargs
type: 'string',
describe: 'metadata key that shall be exclusively uploaded',
})
.group(
['changeKeyField', 'changeKeyValue', 'fromRetrieve', 'refresh'],
'Options for deploy:'
)
.option('changeKeyField', {
type: 'string',
group: 'Options for deploy:',
describe:
'enables updating the key of the deployed metadata with the value in provided field (e.g. c__newKey). Can be used to sync name and key fields.',
})
.option('changeKeyValue', {
type: 'string',
group: 'Options for deploy:',
describe:
'allows updating the key of the metadata to the provided value. Only available if a single type and key is deployed',
})
.option('fromRetrieve', {
type: 'boolean',
group: 'Options for deploy:',
describe: 'optionally deploy from retrieve folder',
})
.option('refresh', {
type: 'boolean',
group: 'Options for deploy:',
describe:
'optional for asset-message: runs refresh command for related triggeredSends after deploy',
});
Expand Down Expand Up @@ -315,8 +315,9 @@ yargs
aliases: ['et'],
desc: 'explains metadata types that can be retrieved',
builder: (yargs) => {
yargs.group(['json'], 'Options for explainTypes:').option('json', {
yargs.option('json', {
type: 'boolean',
group: 'Options for explainTypes:',
describe: 'optionaly return info in json format',
});
},
Expand All @@ -335,14 +336,15 @@ yargs
type: 'string',
describe: 'Pull Request target branch or git commit range',
})
.group(['filter', 'commitHistory'], 'Options for createDeltaPkg:')
.option('filter', {
type: 'string',
group: 'Options for createDeltaPkg:',
describe:
'Disable templating & instead filter by the specified BU path (comma separated), can include subtype, will be prefixed with "retrieve/"',
})
.option('commitHistory', {
type: 'number',
group: 'Options for createDeltaPkg:',
describe: 'Number of commits to look back for changes (supersedes config)',
});
},
Expand Down

0 comments on commit 09fad8c

Please sign in to comment.