spaces

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(space string) error

Add a space to the registered spaces.

func Exists

func Exists(space string) bool

Return true if the given space exists (corresponds to an existing directory).

func GetPath

func GetPath(space string) string

Return the full path to the space.

func InvalidSpaceError added in v0.7.0

func InvalidSpaceError(space string) error

func IsRegistered

func IsRegistered(space string) bool

Return true if the given space is registred in the pm configuration file.

func IsValid

func IsValid(space string) bool

Return true if the space exists on the file system and is registered.

func Remove

func Remove(space string) error

Remove a space from the registered spaces.

func SetDefaultSpace added in v0.6.0

func SetDefaultSpace(space string) error

func SpaceFlagCompletionFunc added in v0.7.0

func SpaceFlagCompletionFunc(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

Types

This section is empty.

Jump to

Keyboard shortcuts

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