websitePrompts

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePrompt   = "Website Name:"
	SelectPrompt = "Select a Website:"

	CreateThis = "Create this website?"
	DeleteThis = "Delete this website?"
	EditThis   = "Edit this website?"
	NoneFound  = "no websites found"
	NotFound   = "website `%s` not found"
)

Variables

This section is empty.

Functions

func Edit

func Edit(ctx *cli.Context, prev *structureSpec.Website) (interface{}, error)

func GetOrSelect

func GetOrSelect(ctx *cli.Context) (*structureSpec.Website, error)

GetOrSelect will try to get the website 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) (interface{}, *structureSpec.Website, error)

func RepositoryInfo

func RepositoryInfo(ctx *cli.Context, website *structureSpec.Website, new bool) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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