@@ -14,7 +14,7 @@ import (
14
14
func init () {
15
15
root .AddCommand (initCmd )
16
16
initCmd .Flags ().BoolP ("confirm" , "c" , false , "Prompt to confirm all configuration options - $FAAS_CONFIRM" )
17
- initCmd .Flags ().StringP ("runtime" , "l" , faas .DefaultRuntime , "Function runtime language/framework. Default runtime is 'go '. Available runtimes: 'node', 'quarkus' and 'go'. - $FAAS_RUNTIME" )
17
+ initCmd .Flags ().StringP ("runtime" , "l" , faas .DefaultRuntime , "Function runtime language/framework. Default runtime is 'node '. Available runtimes: 'node', 'quarkus' and 'go'. - $FAAS_RUNTIME" )
18
18
initCmd .Flags ().StringP ("templates" , "" , filepath .Join (configPath (), "templates" ), "Extensible templates path. - $FAAS_TEMPLATES" )
19
19
initCmd .Flags ().StringP ("trigger" , "t" , faas .DefaultTrigger , "Function trigger. Default trigger is 'http'. Available triggers: 'http' and 'events' - $FAAS_TRIGGER" )
20
20
@@ -31,9 +31,9 @@ var initCmd = &cobra.Command{
31
31
Creates a new Function project at <path>. If <path> does not exist, it is
32
32
created. The Function name is the name of the leaf directory at <path>.
33
33
34
- A project for a Go Function will be created by default. Specify an alternate
35
- runtime with the --language or -l flag. Available alternates are "node" and
36
- "quarkus".
34
+ A project for a Node.js Function will be created by default. Specify an
35
+ alternate runtime with the --language or -l flag. Available alternates are
36
+ "quarkus" and "go" .
37
37
38
38
Use the --trigger or -t flag to specify the function invocation context.
39
39
By default, the trigger is "http". To create a Function for CloudEvents, use
0 commit comments