Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8929404
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
809 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
rSEALPAGE Sealpage
Attached
Detach File
Event Timeline
Log In to Comment