Documentation ¶
Index ¶
- func FromInputByPriority(path string, ns *project.Namespaced, cfg projectfile.ConfigGetter, ...) (*project.Project, error)
- func FromNamespaceLocal(ns *project.Namespaced, cfg projectfile.ConfigGetter, prompt prompt.Prompter) (*project.Project, error)
- func FromPath(path string, ns *project.Namespaced) (*project.Project, error)
- func IsLocalProjectDoesNotExistError(err error) bool
- type LocalProjectDoesNotExist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromInputByPriority ¶
func FromInputByPriority(path string, ns *project.Namespaced, cfg projectfile.ConfigGetter, prompt prompt.Prompter) (*project.Project, error)
func FromNamespaceLocal ¶
func FromNamespaceLocal(ns *project.Namespaced, cfg projectfile.ConfigGetter, prompt prompt.Prompter) (*project.Project, error)
FromNamespaceLocal returns a local project (if any) that matches the given namespace (or the project in the current working directory if namespace was not given). This is primarily used by `state use` in order to fetch a project to switch to if it already exists locally. The namespace may omit the owner.
func IsLocalProjectDoesNotExistError ¶
IsLocalProjectDoesNotExistError checks if the error is a LocalProjectDoesNotExist.
Types ¶
type LocalProjectDoesNotExist ¶
type LocalProjectDoesNotExist struct{ *locale.LocalizedError }
LocalProjectDoesNotExist is an error returned when a requested project is not checked out locally.
Click to show internal directories.
Click to hide internal directories.