projectPrompts

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectName       = "Project Name:"
	ProjectVisibility = "Visibility:"
	SelectAProject    = "Select a Project:"

	CreateThisProject       = "Create this project?"
	Public                  = "public"
	Private                 = "private"
	NoProjectsFound         = "no projects found"
	NoProjectsWithNameFound = "no projects with name `%s` found"
)

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