Documentation ¶
Index ¶
- Variables
- func Execute() error
- func ReadReleasesFile(path string) (releases.Releases, error)
- func Sleep()
- type App
- func (a *App) CmdEdit(p *CommandLineEditParam) error
- func (a *App) CmdInit() error
- func (a *App) CmdInstall(p *CmdInstallParam) error
- func (a *App) CmdList() error
- func (a *App) CmdRoot() error
- func (a *App) CmdUninstall(p *CmdUninstallParam) error
- func (a *App) CmdUpdate(p *CmdUpdateParam) error
- func (a *App) CmdUpgrade(p *CmdUpgradeParam) error
- func (a *App) ConfigDir() string
- func (a *App) ConfigFile() string
- func (a *App) CreateConfigDir() (string, error)
- func (a *App) CreateConfigFile(c Config) (string, error)
- func (a *App) DefaultConfig() Config
- func (a *App) ReadConfigFile() (Config, error)
- func (a *App) SaveReleases(rels releases.Releases) error
- func (a *App) SetUserEnv() error
- type CmdInstallParam
- type CmdUninstallParam
- type CmdUpdateParam
- type CmdUpgradeParam
- type CommandLineEditParam
- type CommandLineInstallParam
- type CommandLineUninstallParam
- type CommandLineUpdateParam
- type CommandLineUpgradeParam
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = logger.Error
Functions ¶
Types ¶
type App ¶
type App struct { Config Config UserHomeDir string UserConfigDir string GitHubClient github.GitHubClientInterface Downloader downloader.DownloaderInterface }
func (*App) CmdEdit ¶
func (a *App) CmdEdit(p *CommandLineEditParam) error
func (*App) CmdInstall ¶
func (a *App) CmdInstall(p *CmdInstallParam) error
CmdInstall installs commands from an url of GitHub Releases.
Decompress it if Releases file was archive file, and install executables to relma directory.Install executables from urls of `releases.json` if `p.File` (releases.json) is not empty.
func (*App) CmdUninstall ¶
func (a *App) CmdUninstall(p *CmdUninstallParam) error
func (*App) CmdUpdate ¶
func (a *App) CmdUpdate(p *CmdUpdateParam) error
func (*App) CmdUpgrade ¶
func (a *App) CmdUpgrade(p *CmdUpgradeParam) error
func (*App) ConfigFile ¶
func (*App) CreateConfigDir ¶
func (*App) DefaultConfig ¶
func (*App) ReadConfigFile ¶
func (*App) SetUserEnv ¶
type CmdInstallParam ¶
type CmdUninstallParam ¶
type CmdUninstallParam struct {
OwnerRepo string
}
type CmdUpdateParam ¶
type CmdUpdateParam struct {
Releases []string
}
type CmdUpgradeParam ¶
type CommandLineEditParam ¶
type CommandLineEditParam struct {
Editor string
}
type CommandLineInstallParam ¶
type CommandLineUninstallParam ¶
type CommandLineUninstallParam struct {
OwnerRepo string
}
type CommandLineUpdateParam ¶
type CommandLineUpdateParam struct {
Releases []string
}
type CommandLineUpgradeParam ¶
type Config ¶
type Config struct {
RelmaRoot string
}
func (*Config) ReleasesDir ¶
func (*Config) ReleasesFile ¶
Click to show internal directories.
Click to hide internal directories.