pkg

package
v0.0.0-...-552dcf1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitPath

func IsGitPath(path string) bool

IsGitPath - returns true if the path is for a Git repository, false otherwise

func IsRemotePath

func IsRemotePath(path string) bool

IsRemotePath - returns true if the path is a URL, false otherwise

func JoinRelativePath

func JoinRelativePath(rootPath string, relPath string) (string, error)

func ParentPath

func ParentPath(path string) (string, error)

ParentPath - returns the parent directory of the given path, for either local or remote paths

func ParseGitPath

func ParseGitPath(path string) (string, string)

ParseGitPath - returns the components of a Git path (the domain and the subdirectory)

Types

type GFlowsPackage

type GFlowsPackage interface {
	WorkflowsDir() string
	LibsDir() string
	GetPathInfo(localPath string) (*PathInfo, error)
}

type LibInfo

type LibInfo struct {
	Path     string
	IsRemote bool
	Exists   bool
	IsDir    bool
}

func GetLibInfo

func GetLibInfo(libPath string, fs *afero.Afero) (*LibInfo, error)

type PathInfo

type PathInfo struct {
	SourcePath  string
	LocalPath   string
	Description string
}

Jump to

Keyboard shortcuts

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