Skip to content

Commit

Permalink
feat: strf-9071 - update download command to support multiple channels
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGenash committed Mar 17, 2021
1 parent 4e88382 commit d6a9f94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/stencil-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const extraExclude = cliOptions.exclude ? [cliOptions.exclude] : [];
const options = {
exclude: ['parsed', 'manifest.json', ...extraExclude],
apiHost: cliOptions.host || API_HOST,
channelId: cliOptions.channel_id || 1,
channelId: cliOptions.channel_id,
applyTheme: true, // fix to be compatible with stencil-push.utils
file: cliOptions.file,
};

Expand All @@ -45,7 +46,7 @@ async function run(opts) {
return;
}

console.log(`${'ok'.green} -- ${overwriteType} will be overwritten by change`);
console.log(`${'ok'.green} -- ${overwriteType} will be overwritten by the changes`);

try {
await stencilDownload(opts);
Expand Down
3 changes: 2 additions & 1 deletion lib/stencil-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ function stencilDownload(options) {
async.constant(options),
stencilPushUtils.readStencilConfigFile,
stencilPushUtils.getStoreHash,
stencilPushUtils.getThemes,
stencilPushUtils.getChannels,
stencilPushUtils.promptUserForChannel,
stencilPullUtils.getChannelActiveTheme,
stencilDownloadUtil.startThemeDownloadJob,
stencilPushUtils.pollForJobCompletion(({ download_url: downloadUrl }) => ({ downloadUrl })),
Expand Down

0 comments on commit d6a9f94

Please sign in to comment.