projectPrompts

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateThisProject = "Create this project?"
	Public            = "public"
	Private           = "private"
)

Variables

View Source
var (
	VisibilityOptions = []string{Public, Private}
)

Functions

func GetOrRequireVisibility

func GetOrRequireVisibility(ctx *cli.Context) (visible bool, err error)

GetOrRequireVisibility parses public and private flags to then return visible or the "public" bool. This will error if both public and private are true

func GetOrSelect

func GetOrSelect(ctx *cli.Context, checkEnv bool) (*client.Project, error)

GetOrSelect will try to get the project from a name flag if it is not set in the flag it will offer a selection menu

func GetSelectOrDeselect

func GetSelectOrDeselect(ctx *cli.Context) (project *client.Project, deselect bool, err error)

func New

func New(ctx *cli.Context) (embedToken bool, project *projectLib.Project, 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