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

Commit f9d3e87

Browse files
authored
Merge pull request #123 from netlify/removeFunctionsFlag
remove --functions flag in `netlify functions:create`
2 parents 861ff52 + 7c79108 commit f9d3e87

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/commands/functions/create.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,7 @@ FunctionsCreateCommand.examples = [
6060
FunctionsCreateCommand.aliases = ["function:create"];
6161
FunctionsCreateCommand.flags = {
6262
name: flags.string({ char: "n", description: "function name" }),
63-
functions: flags.string({ char: "f", description: "functions folder" }),
6463
url: flags.string({ char: "u", description: "pull template from URL" })
65-
// // SWYX: deprecated; every scaffolded function is a directory now
66-
// dir: flags.boolean({
67-
// char: 'd',
68-
// description: 'create function as a directory'
69-
// })
7064
};
7165
module.exports = FunctionsCreateCommand;
7266

@@ -205,8 +199,7 @@ async function pickTemplate() {
205199

206200
/* get functions dir (and make it if necessary) */
207201
function ensureFunctionDirExists(flags, config) {
208-
const functionsDir =
209-
flags.functions || (config.build && config.build.functions);
202+
const functionsDir = config.build && config.build.functions;
210203
if (!functionsDir) {
211204
this.log(
212205
`${NETLIFYDEVLOG} No functions folder specified in netlify.toml or as an argument`

0 commit comments

Comments
 (0)