feat: add disable-google-font parameter to serve command in cli (#1558)

This commit is contained in:
Patrick Demers 2021-03-31 07:51:50 -05:00 committed by GitHub
parent 4846259de3
commit c7bbef5155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,12 @@ YargsParser.command(
type: 'boolean', type: 'boolean',
}); });
yargs.options('disable-google-font', {
describe: 'Disable Google Font',
type: 'boolean',
default: false,
});
yargs.demandOption('spec'); yargs.demandOption('spec');
return yargs; return yargs;
}, },
@ -80,6 +86,7 @@ YargsParser.command(
ssr: argv.ssr as boolean, ssr: argv.ssr as boolean,
title: argv.title as string, title: argv.title as string,
watch: argv.watch as boolean, watch: argv.watch as boolean,
disableGoogleFont: argv.disableGoogleFont as boolean,
templateFileName: argv.template as string, templateFileName: argv.template as string,
templateOptions: argv.templateOptions || {}, templateOptions: argv.templateOptions || {},
redocOptions: getObjectOrJSON(argv.options), redocOptions: getObjectOrJSON(argv.options),