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 @@ -60,13 +60,7 @@ FunctionsCreateCommand.examples = [
60
60
FunctionsCreateCommand . aliases = [ "function:create" ] ;
61
61
FunctionsCreateCommand . flags = {
62
62
name : flags . string ( { char : "n" , description : "function name" } ) ,
63
- functions : flags . string ( { char : "f" , description : "functions folder" } ) ,
64
63
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
- // })
70
64
} ;
71
65
module . exports = FunctionsCreateCommand ;
72
66
@@ -205,8 +199,7 @@ async function pickTemplate() {
205
199
206
200
/* get functions dir (and make it if necessary) */
207
201
function ensureFunctionDirExists ( flags , config ) {
208
- const functionsDir =
209
- flags . functions || ( config . build && config . build . functions ) ;
202
+ const functionsDir = config . build && config . build . functions ;
210
203
if ( ! functionsDir ) {
211
204
this . log (
212
205
`${ NETLIFYDEVLOG } No functions folder specified in netlify.toml or as an argument`
You can’t perform that action at this time.
0 commit comments