upgrade deps
This commit is contained in:
@ -32,6 +32,10 @@ exports.optionDefinitions = [
|
||||
description: 'Print the stored config.', group: 'misc'
|
||||
},
|
||||
{
|
||||
name: 'config-file', type: String,
|
||||
description: 'Config file to use', group: 'misc'
|
||||
},
|
||||
{
|
||||
name: 'verbose', type: Boolean, alias: 'v',
|
||||
description: 'Verbose output.', group: 'misc'
|
||||
},
|
||||
|
@ -4,6 +4,11 @@ class CliView {
|
||||
constructor (localWebServer) {
|
||||
this.localWebServer = localWebServer
|
||||
}
|
||||
/**
|
||||
* @example
|
||||
* { log: 'whatever' }
|
||||
* { config: { static: { root: 1, hidden: 2 } } }
|
||||
*/
|
||||
write (msg) {
|
||||
const writeToStdout = [ 'log', 'info' ]
|
||||
Object.keys(msg).forEach(key => {
|
||||
@ -26,6 +31,9 @@ function printLine (config) {
|
||||
process.stderr.write(output)
|
||||
}
|
||||
|
||||
/**
|
||||
* create a nested table for deep object trees
|
||||
*/
|
||||
function objectToTable (object) {
|
||||
const ansi = require('ansi-escape-sequences')
|
||||
const tableLayout = require('table-layout')
|
||||
|
@ -1,5 +1,22 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict'
|
||||
|
||||
// /Users/lloydb/Documents/lws/local-web-server/lib/local-web-server.js:307
|
||||
// console.error(usage)
|
||||
// ^
|
||||
//
|
||||
// ReferenceError: usage is not defined
|
||||
// at parseCommandLineOptions (/Users/lloydb/Documents/lws/local-web-server/lib/local-web-server.js:307:19)
|
||||
// at new LocalWebServer (/Users/lloydb/Documents/lws/local-web-server/lib/local-web-server.js:46:47)
|
||||
// at Object.<anonymous> (/Users/lloydb/Documents/lws/local-web-server/bin/cli.js:4:1)
|
||||
// at Module._compile (module.js:556:32)
|
||||
// at Object.Module._extensions..js (module.js:565:10)
|
||||
// at Module.load (module.js:473:32)
|
||||
// at tryModuleLoad (module.js:432:12)
|
||||
// at Function.Module._load (module.js:424:3)
|
||||
// at Module.runMain (module.js:590:10)
|
||||
// at run (bootstrap_node.js:394:7)
|
||||
|
||||
const path = require('path')
|
||||
const flatten = require('reduce-flatten')
|
||||
const arrayify = require('array-back')
|
||||
|
Reference in New Issue
Block a user