functionPrompts

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 GetFunctionType(ctx *cli.Context, prev ...string) (string, error)

func GetHttpMethod

func GetHttpMethod(ctx *cli.Context, prev ...string) (string, error)

func GetOrRequireAChannel

func GetOrRequireAChannel(ctx *cli.Context, prev ...string) string

func GetOrRequireACommand

func GetOrRequireACommand(ctx *cli.Context, prev ...string) string

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

func New

func New(ctx *cli.Context) (function *structureSpec.Function, templateURL string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL