Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Fix flag #222

Merged
merged 2 commits into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions src/commands/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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;
5 changes: 4 additions & 1 deletion src/commands/functions/invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion src/commands/functions/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down