Documentation ¶
Index ¶
- Constants
- func Edit(ctx *cli.Context, function *structureSpec.Function) (err error)
- func GetFunctionType(ctx *cli.Context, prev ...string) (string, error)
- func GetHttpMethod(ctx *cli.Context, prev ...string) (string, error)
- func GetOrRequireAChannel(ctx *cli.Context, prev ...string) string
- func GetOrRequireACommand(ctx *cli.Context, prev ...string) string
- func GetOrSelect(ctx *cli.Context) (*structureSpec.Function, error)
- func New(ctx *cli.Context) (function *structureSpec.Function, templateURL string, err error)
Constants ¶
View Source
const ( NamePrompt = "Function Name:" SelectPrompt = "Select a Function:" ChannelPrompt = "Channel:" CommandPrompt = "Command:" ProtocolPrompt = "Select a Protocol:" SecurePrompt = "Secure (https):" MethodPrompt = "Method:" TypePrompt = "Type:" CreateThis = "Create this function?" DeleteThis = "Delete this function?" EditThis = "Edit this function?" NoneFound = "no functions found" NotFound = "function `%s` not found" )
Variables ¶
This section is empty.
Functions ¶
func Edit ¶
func Edit(ctx *cli.Context, function *structureSpec.Function) (err error)
func GetFunctionType ¶
func GetHttpMethod ¶
func GetOrRequireAChannel ¶
func GetOrRequireACommand ¶
func GetOrSelect ¶
func GetOrSelect(ctx *cli.Context) (*structureSpec.Function, error)
GetOrSelect will try to get the function from a name flag if it is not set in the flag it will offer a selection menu
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.