This repository was archived by the owner on Sep 12, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,7 @@ FunctionsCreateCommand.examples = [
62
62
FunctionsCreateCommand . aliases = [ "function:create" ] ;
63
63
FunctionsCreateCommand . flags = {
64
64
name : flags . string ( { char : "n" , description : "function name" } ) ,
65
- functions : flags . string ( { char : "f" , description : "functions folder" } ) ,
66
65
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
- // })
72
66
} ;
73
67
module . exports = FunctionsCreateCommand ;
74
68
@@ -207,8 +201,7 @@ async function pickTemplate() {
207
201
208
202
/* get functions dir (and make it if necessary) */
209
203
function ensureFunctionDirExists ( flags , config ) {
210
- const functionsDir =
211
- flags . functions || ( config . build && config . build . functions ) ;
204
+ const functionsDir = config . build && config . build . functions ;
212
205
if ( ! functionsDir ) {
213
206
this . log (
214
207
`${ NETLIFYDEVLOG } No functions folder specified in netlify.toml or as an argument`
You can’t perform that action at this time.
0 commit comments