Documentation
¶
Index ¶
- func CheckDeps(validationFilePath string, version string) bool
- func GenDepsScript(depsList []string, scriptPath string, validationFilePath string, ...) error
- func InstallApps(args ...string) error
- func InstallAppsShell(scriptPath string) error
- func InstallDepsWithUI(args ...string) error
- func ShowInstalledAppsTable(args ...string) error
- func Writer(module string) io.Writer
- type AppInfo
- type AppsTableHandler
- type KbxDepsModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDeps ¶
CheckDeps verifica se as dependências estão instaladas. Recebe o caminho do arquivo de validação e a versão. Retorna um booleano indicando se as dependências estão instaladas.
func GenDepsScript ¶
func GenDepsScript(depsList []string, scriptPath string, validationFilePath string, version string) error
GenDepsScript gera um script para verificar e instalar dependências. Recebe uma lista de dependências, o caminho do script, o caminho do arquivo de validação e a versão. Retorna um erro, se houver.
func InstallApps ¶
InstallApps instala aplicativos usando a interface do usuário. Recebe uma lista de argumentos. Retorna um erro, se houver.
func InstallAppsShell ¶
InstallAppsShell executa um script de instalação de aplicativos. Recebe o caminho do script. Retorna um erro, se houver.
func InstallDepsWithUI ¶
InstallDepsWithUI installs dependencies in a terminal UI with a progress bar
func ShowInstalledAppsTable ¶
ShowInstalledAppsTable exibe a tabela de aplicativos instalados. Recebe uma lista de argumentos. Retorna um erro, se houver.
Types ¶
type AppInfo ¶
type AppInfo struct {
Name string // Name
Version string // Version
Method string // Method
Status string // Status
Description string // Description
}
AppInfo show information about an installed application.
type AppsTableHandler ¶
type AppsTableHandler struct {
t.TableDataHandler
// contains filtered or unexported fields
}
AppsTableHandler lida com a tabela de aplicativos.
func (*AppsTableHandler) GetHeaders ¶
func (h *AppsTableHandler) GetHeaders() []string
GetHeaders retorna os cabeçalhos da tabela de aplicativos. Retorna um slice de strings com os cabeçalhos.
func (*AppsTableHandler) GetRows ¶
func (h *AppsTableHandler) GetRows() [][]string
GetRows retorna as linhas da tabela de aplicativos. Retorna um slice de slices de strings com as linhas da tabela.
type KbxDepsModel ¶
type KbxDepsModel struct {
// contains filtered or unexported fields
}
func KbxDepsNewModel ¶
func KbxDepsNewModel(apps []string, path string, yes bool, quiet bool) KbxDepsModel
func (*KbxDepsModel) Init ¶
func (m *KbxDepsModel) Init() tea.Cmd
func (*KbxDepsModel) View ¶
func (m *KbxDepsModel) View() string