You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-10-16 09:54:28 -04:00
Use Object destructuring.
This commit is contained in:
5
cli.js
5
cli.js
@@ -2,9 +2,10 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const spawn = require('child_process').spawn;
|
||||
const { spawn } = require('child_process');
|
||||
const hugo = require('.');
|
||||
|
||||
const input = process.argv.slice(2);
|
||||
|
||||
spawn(hugo, input, {stdio: 'inherit'})
|
||||
spawn(hugo, input, { stdio: 'inherit' })
|
||||
.on('exit', process.exit);
|
||||
|
Reference in New Issue
Block a user