projects

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.2.0

func Clone(hostname, repository, space, projectName string) error

Clone the repository in the given space, using the given project name.

func Exists

func Exists(space, project string) bool

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

func GetPath

func GetPath(space, project string) string

Return the full path to the project on the given space.

func IsInShortFormat added in v0.5.0

func IsInShortFormat(format string) bool

IsInShortFormat returns true if the given format follows the short format convention which is 'spaceName/projectName'.

func ListProjects added in v0.2.0

func ListProjects() []string

func ListProjectsInSpace added in v0.2.0

func ListProjectsInSpace(space string, addPrefix bool) []string

func Open added in v0.7.1

func Open(space, project string) error

Open opens the project in tmux (if configured) and execute custom hook.

func ParseShortFormat added in v0.5.0

func ParseShortFormat(format string) (string, string)

ParseShortFormat parses the given short format and return the space and the project name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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