Skip to content

Commit d6a9f94

Browse files
author
MaxGenash
committed
feat: strf-9071 - update download command to support multiple channels
1 parent 4e88382 commit d6a9f94

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/stencil-download.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const extraExclude = cliOptions.exclude ? [cliOptions.exclude] : [];
2424
const options = {
2525
exclude: ['parsed', 'manifest.json', ...extraExclude],
2626
apiHost: cliOptions.host || API_HOST,
27-
channelId: cliOptions.channel_id || 1,
27+
channelId: cliOptions.channel_id,
28+
applyTheme: true, // fix to be compatible with stencil-push.utils
2829
file: cliOptions.file,
2930
};
3031

@@ -45,7 +46,7 @@ async function run(opts) {
4546
return;
4647
}
4748

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

5051
try {
5152
await stencilDownload(opts);

lib/stencil-download.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ function stencilDownload(options) {
88
async.constant(options),
99
stencilPushUtils.readStencilConfigFile,
1010
stencilPushUtils.getStoreHash,
11-
stencilPushUtils.getThemes,
11+
stencilPushUtils.getChannels,
12+
stencilPushUtils.promptUserForChannel,
1213
stencilPullUtils.getChannelActiveTheme,
1314
stencilDownloadUtil.startThemeDownloadJob,
1415
stencilPushUtils.pollForJobCompletion(({ download_url: downloadUrl }) => ({ downloadUrl })),

0 commit comments

Comments
 (0)