@@ -59,12 +59,7 @@ export const docs: Command = {
5959export const runDocsInitCommand = async (
6060 options : Required < DocsInitCommandOptions >
6161) : Promise < void > => {
62- const {
63- verbose,
64- quiet,
65- logFile,
66- manifestFile
67- } = options ;
62+ const { verbose, quiet, logFile, manifestFile } = options ;
6863
6964 const logger = createLogger ( { verbose, quiet, logFile } ) ;
7065
@@ -73,32 +68,32 @@ export const runDocsInitCommand = async (
7368 if ( docsManifestExists ) {
7469 logger . error (
7570 intlMsg . commands_docs_init_error_manifest_exists ( {
76- manifestFile : defaultDocsManifest [ 0 ]
71+ manifestFile : defaultDocsManifest [ 0 ] ,
7772 } )
7873 ) ;
7974 process . exit ( 1 ) ;
8075 }
8176
82- let docsManifest = await getSchemaString ( logger , "docs" , {
77+ const docsManifest = await getSchemaString ( logger , "docs" , {
8378 verbose : false ,
8479 quiet : true ,
8580 logFile : false ,
8681 raw : false ,
87- manifestFile : false
82+ manifestFile : false ,
8883 } ) ;
8984
9085 fse . writeFileSync ( defaultDocsManifest [ 0 ] , docsManifest ) ;
9186
9287 logger . info (
9388 intlMsg . commands_docs_init_msg_manifest_created ( {
94- manifestFile : defaultDocsManifest [ 0 ]
89+ manifestFile : defaultDocsManifest [ 0 ] ,
9590 } )
9691 ) ;
9792
9893 logger . warn (
9994 intlMsg . commands_docs_init_warn_update_manifest ( {
10095 manifestFile,
101- docsManifestFile : defaultDocsManifest [ 0 ]
96+ docsManifestFile : defaultDocsManifest [ 0 ] ,
10297 } )
10398 ) ;
10499} ;
0 commit comments