findproject

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

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 FromPath

func FromPath(path string, ns *project.Namespaced) (*project.Project, error)

func IsLocalProjectDoesNotExistError

func IsLocalProjectDoesNotExistError(err error) bool

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.

Jump to

Keyboard shortcuts

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