Documentation ¶
Overview ¶
Package pkg is for implementing commands
Package pkg is for implementing commands ¶
Package pkg is for implementing commands
Index ¶
- type Asset
- type Kindly
- func (k Kindly) Check(ctx context.Context, n string) (ks KindlyStruct, err error)
- func (k Kindly) GenerateTemplate(ctx context.Context, owner string, repo string) (kc KindlyStruct, err error)
- func (k Kindly) Install(ctx context.Context, p string, f bool, u bool) (err error)
- func (k Kindly) ListPackages(ctx context.Context, installed bool) (s []string, err error)
- func (k Kindly) Remove(ctx context.Context, p string) (err error)
- func (k *Kindly) SetConfig(c config.Config)
- func (k *Kindly) SetLogger(l *log.Logger)
- func (k Kindly) Update(ctx context.Context, n string) (err error)
- type KindlyStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kindly ¶
type Kindly struct {
// contains filtered or unexported fields
}
Kindly struct stores kindly config
func (Kindly) Check ¶
Check function checks if the packages passed in args are available TODO variadic function
func (Kindly) GenerateTemplate ¶
func (k Kindly) GenerateTemplate(ctx context.Context, owner string, repo string) (kc KindlyStruct, err error)
GenerateTemplate function implements template command
func (Kindly) ListPackages ¶
ListPackages function implements list command
type KindlyStruct ¶
type KindlyStruct struct { Spec struct { Name string `yaml:"name"` Description string `yaml:"description"` Homepage string `yaml:"homepage"` RepoURL string `yaml:"repo_url"` License string `yaml:"license"` Tags []string `yaml:"tags"` Version string `yaml:"version"` Assets map[string]Asset `yaml:"assets"` Bin []string `yaml:"bin"` Completion map[string][]string `yaml:"completion"` Man []string `yaml:"man"` } }
KindlyStruct is exported.
Click to show internal directories.
Click to hide internal directories.