Skip to content

Commit 64ecc77

Browse files
Merge pull request #2445 from Accenture/#2422-retrieve-last-published-version
feature/2422 implement onlyPublished optional param to filter retrieved journeys
2 parents c314d04 + 4f95da3 commit 64ecc77

9 files changed

Lines changed: 164 additions & 49 deletions

File tree

@types/lib/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

@types/lib/metadataTypes/Journey.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ yargs(hideBin(process.argv))
7373
type: 'boolean',
7474
group: 'Options for retrieve:',
7575
describe: 'deletes the relevant retrieve folder before retrieving',
76+
})
77+
.option('onlyPublished', {
78+
type: 'boolean',
79+
alias: 'op',
80+
group: 'Options for retrieve:',
81+
describe: 'only retrieve the version of the metadata that was published',
7682
}),
7783
(argv) => {
7884
Mcdev.setOptions(argv);

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Mcdev {
9797
'ignoreSfFields',
9898
'json',
9999
'keySuffix',
100+
'onlyPublished',
100101
'like',
101102
'matchName',
102103
'noLogColors',

0 commit comments

Comments
 (0)