Skip to content

Commit

Permalink
Hide skip init option, add debug hidden option
Browse files Browse the repository at this point in the history
  • Loading branch information
jsines committed Nov 2, 2023
1 parent 386a96c commit ccba9b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 11 additions & 6 deletions packages/cli/commands/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exports.command = 'preview <src> <dest>';
exports.describe = i18n(`${i18nKey}.describe`);

exports.handler = async options => {
const { src, dest, notify, skipUpload, noSsl, port } = options;
const { src, dest, notify, skipUpload, noSsl, port, debug } = options;

const accountId = getAccountId(options);
const absoluteSrc = path.resolve(getCwd(), src);
Expand All @@ -53,6 +53,7 @@ exports.handler = async options => {
skipUpload,
noSsl,
port,
debug,
});
};

Expand All @@ -65,11 +66,6 @@ exports.builder = yargs => {
describe: i18n(`${i18nKey}.positionals.dest.describe`),
type: 'string',
});
yargs.option('skipUpload', {
alias: 'skip',
describe: i18n(`${i18nKey}.options.skipUpload.describe`),
type: 'boolean',
});
yargs.option('notify', {
alias: 'n',
describe: i18n(`${i18nKey}.options.notify.describe`),
Expand All @@ -84,5 +80,14 @@ exports.builder = yargs => {
describe: i18n(`${i18nKey}.options.port.describe`),
type: 'number',
});
yargs.option('debug', {
describe: false,
type: 'boolean',
});
yargs.option('skipUpload', {
alias: 'skip',
describe: false,
type: 'boolean',
});
return yargs;
};
2 changes: 0 additions & 2 deletions packages/cli/lang/en.lyaml
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,6 @@ en:
options:
notify:
describe: "Log to specified file when a watch task is triggered and after workers have gone idle. Ex. --notify path/to/file"
skipUpload:
describe: "Skip initial upload of src directory"
noSsl:
describe: "Disable HTTPS"
port:
Expand Down

0 comments on commit ccba9b2

Please sign in to comment.