Documentation
¶
Index ¶
- func FilterByRepo(v *Vin) error
- type App
- func (a *App) AssetURL(release *github.RepositoryRelease) (string, error)
- func (a *App) HasCache(tag string) bool
- func (a *App) Install(ctx context.Context, url string) error
- func (a *App) Release(ctx context.Context, gh *github.Client) (*github.RepositoryRelease, error)
- func (a *App) RunCommand() error
- type Config
- type Option
- type Vin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterByRepo ¶
Types ¶
type App ¶
type App struct {
// Repo is the GitHub repository name in "owner/repo" format.
Repo string `mapstructure:"repo"`
// Tag is the tag on GitHub.
Tag string `mapstructure:"tag"`
// Keywords is a list of keywords to select a suitable asset from multiple assets.
Keywords []string `mapstructure:"keywords"`
// Name is the name of the executable file.
Name string `mapstructure:"name"`
// Command is the command to run after installation.
Command string `mapstructure:"command"`
DownloadFunc func(ctx context.Context, url string, dst io.Writer) error
// contains filtered or unexported fields
}
func (*App) RunCommand ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.