pack

package
v0.0.0-...-c489eea Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VimLoadStart = "start"
	VimLoadOpt   = "opt"
)

Variables

View Source
var (
	ErrPackNotFound      = errorx.NewType(errNS, "not_found", errorx.NotFound())
	ErrPackAlreadyExists = errorx.NewType(errNS, "already_exists", errorx.Duplicate())
)

Functions

func IsLoadType

func IsLoadType(load string) bool

func ListGroups

func ListGroups(packDir string) ([]string, error)

func RemovePack

func RemovePack(packDir, name string) error

func SetPackDir

func SetPackDir(packDir *string) error

func UpdatePack

func UpdatePack(packDir, name string) (string, error)

Types

type Pack

type Pack struct {
	Name      string `json:"name"`
	Dirname   string `json:"dirname"`
	Location  string `json:"location"`
	RemoteURL string `json:"remoteURL"`
	Group     string `json:"group"`
	Load      string `json:"load"`
	Head      string `json:"head"`
}

func AddPack

func AddPack(packDir, url, group, load string) (Pack, error)

func ChangePack

func ChangePack(packDir, name, group, load string) (Pack, error)

func GetByName

func GetByName(packDir string, name string) (Pack, error)

func ListPacks

func ListPacks(packDir string) ([]Pack, error)

func ListPacksForGroup

func ListPacksForGroup(packDir string, group string) ([]Pack, error)

Jump to

Keyboard shortcuts

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