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

Commit d635fae

Browse files
author
sw-yx
committed
remove flag
1 parent a28403f commit d635fae

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
@@ -62,13 +62,7 @@ FunctionsCreateCommand.examples = [
6262
FunctionsCreateCommand.aliases = ["function:create"];
6363
FunctionsCreateCommand.flags = {
6464
name: flags.string({ char: "n", description: "function name" }),
65-
functions: flags.string({ char: "f", description: "functions folder" }),
6665
url: flags.string({ char: "u", description: "pull template from URL" })
67-
// // SWYX: deprecated; every scaffolded function is a directory now
68-
// dir: flags.boolean({
69-
// char: 'd',
70-
// description: 'create function as a directory'
71-
// })
7266
};
7367
module.exports = FunctionsCreateCommand;
7468

@@ -207,8 +201,7 @@ async function pickTemplate() {
207201

208202
/* get functions dir (and make it if necessary) */
209203
function ensureFunctionDirExists(flags, config) {
210-
const functionsDir =
211-
flags.functions || (config.build && config.build.functions);
204+
const functionsDir = config.build && config.build.functions;
212205
if (!functionsDir) {
213206
this.log(
214207
`${NETLIFYDEVLOG} No functions folder specified in netlify.toml or as an argument`

0 commit comments

Comments
 (0)