Documentation
¶
Index ¶
- Constants
- Variables
- func GetOrRequireVisibility(ctx *cli.Context) (visible bool, err error)
- func GetOrSelect(ctx *cli.Context, checkEnv bool) (*client.Project, error)
- func GetSelectOrDeselect(ctx *cli.Context) (project *client.Project, deselect bool, err error)
- func New(ctx *cli.Context) (embedToken bool, project *projectLib.Project, err error)
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 ¶
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 ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.