From 9aae3d4e1a80f3e8af316d3f7b5a5446114b0721 Mon Sep 17 00:00:00 2001 From: DavidWells Date: Fri, 19 Jul 2019 09:33:51 -0700 Subject: [PATCH 1/2] fix dir flag --- src/commands/dev/index.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/commands/dev/index.js b/src/commands/dev/index.js index aa94adc..7d5afb9 100644 --- a/src/commands/dev/index.js +++ b/src/commands/dev/index.js @@ -312,9 +312,17 @@ DevCommand.examples = [ DevCommand.strict = false; DevCommand.flags = { - command: flags.string({ char: "c", description: "command to run" }), - port: flags.integer({ char: "p", description: "port of netlify dev" }), - dir: flags.integer({ char: "d", description: "dir with static files" }), + command: flags.string({ + char: "c", + description: "command to run" + }), + port: flags.integer({ + char: "p", + description: "port of netlify dev" }), + dir: flags.string({ + char: "d", + description: "dir with static files" + }), functions: flags.string({ char: "f", description: "Specify a functions folder to serve" @@ -323,7 +331,10 @@ DevCommand.flags = { char: "o", description: "disables any features that require network access" }), - live: flags.boolean({ char: "l", description: "Start a public live session" }) + live: flags.boolean({ + char: "l", + description: "Start a public live session" + }) }; module.exports = DevCommand; From bdb6f97dfe6158cea8226d05965423fd248516c4 Mon Sep 17 00:00:00 2001 From: DavidWells Date: Fri, 19 Jul 2019 09:33:57 -0700 Subject: [PATCH 2/2] format flags --- src/commands/functions/invoke.js | 5 ++++- src/commands/functions/list.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/commands/functions/invoke.js b/src/commands/functions/invoke.js index 7427518..4d91393 100644 --- a/src/commands/functions/invoke.js +++ b/src/commands/functions/invoke.js @@ -231,7 +231,10 @@ FunctionsInvokeCommand.args = [ ]; FunctionsInvokeCommand.flags = { - name: flags.string({ char: "n", description: "function name to invoke" }), + name: flags.string({ + char: "n", + description: "function name to invoke" + }), functions: flags.string({ char: "f", description: "Specify a functions folder to parse, overriding netlify.toml" diff --git a/src/commands/functions/list.js b/src/commands/functions/list.js index 09050a1..2ba48a7 100644 --- a/src/commands/functions/list.js +++ b/src/commands/functions/list.js @@ -88,7 +88,10 @@ NOT the same as listing the functions that have been deployed. For that info you `; FunctionsListCommand.aliases = ["function:list"]; FunctionsListCommand.flags = { - name: flags.string({ char: "n", description: "name to print" }), + name: flags.string({ + char: "n", + description: "name to print" + }), functions: flags.string({ char: "f", description: "Specify a functions folder to serve"