Page MenuHomeSealhub

No OneTemporary

diff --git a/cli.js b/cli.js
index 85880c1..5703ca0 100755
--- a/cli.js
+++ b/cli.js
@@ -1,29 +1,30 @@
#!/usr/bin/env node
const sealpage = require('./index');
const path = require('path');
require('yargs')
.command(
'build <sitemap_path> <output_dir>',
'start builder',
yargs => {
return yargs
.positional('sitemap_path', {
describe: 'The path to sitemap config',
type: 'string',
})
.positional('output_dir', {
describe: 'The directory to output',
type: 'string',
});
},
- argv => {
- sealpage.build(
+ async argv => {
+ await sealpage.build(
path.resolve(process.env.PWD, argv.sitemap_path),
path.resolve(process.env.PWD, argv.output_dir)
);
+ process.exit(0);
}
)
.demandCommand()
.help()
.wrap(80).argv;

File Metadata

Mime Type
text/x-diff
Expires
Sat, Sep 20, 22:43 (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
949722
Default Alt Text
(809 B)

Event Timeline