You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building the func (e.g. via main) branch, I see this:
./func create --help
NAME
func create - Create a function
SYNOPSIS
func create [-l|--language] [-t|--template] [-r|--repository]
[-c|--confirm] [-v|--verbose] [path]
DESCRIPTION
Creates a new function project.
$ func create -l node
Creates a function in the current directory '.' which is written in the
language/runtime 'node' and handles HTTP events.
If [path] is provided, the function is initialized at that path, creating
the path if necessary.
To complete this command interactively, use --confirm (-c):
$ func create -c
Available Language Runtimes and Templates:
Language Template
-------- --------
go cloudevents
go http
node cloudevents
node http
...
some more
...
typescript cloudevents
typescript http
To install more language runtimes and their templates see 'func repository'.
EXAMPLES
o Create a Node.js function in the current directory (the default path) which
handles http events (the default template).
$ func create -l node
o Create a Node.js function in the directory 'myfunc'.
$ func create -l node myfunc
o Create a Go function which handles CloudEvents in ./myfunc.
$ func create -l go -t cloudevents myfunc
Usage:
func create [flags]
Aliases:
create, init
Flags:
-c, --confirm Prompt to confirm options interactively ($FUNC_CONFIRM)
-l, --language string Language Runtime (see help text for list) ($FUNC_LANGUAGE)
-r, --repository string URI to a Git repository containing the specified template ($FUNC_REPOSITORY)
-t, --template string Function template. (see help text for list) ($FUNC_TEMPLATE) (default "http")
-v, --verbose Print verbose logs ($FUNC_VERBOSE)
I do not see any statement on how to get the instanced func. Or is that not possible yet?
Currently we have zero documentation how to create an
instanced
Go-lang function, on our developer guide:Perhaps it would also make sense to change the default to be
instanced
, and than just document how to get the static handler, in case folks want that.The text was updated successfully, but these errors were encountered: