Documentation
¶
Index ¶
- func New() *cli.Command
- type Cmd
- func (c *Cmd) CacheDir(source, tool, version, arch string) (string, error)
- func (c *Cmd) CacheFile(source, targetName, tool, version, arch string) (string, error)
- func (c *Cmd) CacheFind(tool, arch, versionSpec string) (string, error)
- func (c *Cmd) CacheFindAll(tool, arch string) ([]string, error)
- func (c *Cmd) CacheGet() (string, error)
- func (c *Cmd) Download(ctx context.Context, rawURL string) (string, error)
- func (c *Cmd) ExtractTar(path string, gz bool) (string, error)
- func (c *Cmd) ExtractZip(path string) (string, error)
- func (c *Cmd) Install(ctx context.Context, options InstallOptions) (string, error)
- func (c *Cmd) VersionCheck(version, versionSpec string) (bool, error)
- type InstallOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd provides the action logic for tool subcommands.
func (*Cmd) CacheFindAll ¶
CacheFindAll returns all cached paths for a tool.
func (*Cmd) ExtractTar ¶
ExtractTar extracts a tar archive to a temporary directory.
func (*Cmd) ExtractZip ¶
ExtractZip extracts a zip archive to a temporary directory.
Click to show internal directories.
Click to hide internal directories.