feat,docs: prepare initial release

This commit is contained in:
Patryk Hegenberg 2024-12-28 12:48:46 +01:00
parent 2b2aaede18
commit f14b54ea20
11 changed files with 188 additions and 100 deletions

View file

@ -75,7 +75,7 @@ func (m specialSoftwareModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
func (m specialSoftwareModel) View() string {
if m.done {
return doneStyle.Render(fmt.Sprintf("Spezielle Software Installation abgeschlossen!\n"))
return doneStyle.Render("Spezielle Software Installation abgeschlossen!\n")
}
spin := m.spinner.View() + " "
@ -93,7 +93,7 @@ func (m specialSoftwareModel) installItemCmd(item string) tea.Cmd {
return installedItemMsg(item)
}
err := executeShellCommand("curl -s https://ohmyposh.dev/install.sh | bash -s")
if err != nil {
if err != nil {
log.Printf("Fehler bei der Installation von oh-my-posh: %v\n", err)
}
case "golang":
@ -115,7 +115,7 @@ func (m specialSoftwareModel) installItemCmd(item string) tea.Cmd {
}
}
err := executeShellCommand("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -q -y")
if err != nil {
if err != nil {
log.Printf("Fehler bei der Installation von rustup: %v\n", err)
}
}
@ -124,10 +124,10 @@ func (m specialSoftwareModel) installItemCmd(item string) tea.Cmd {
}
func executeShellCommand(command string) error {
cmd := exec.Command("bash", "-c", command)
output, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("Befehl fehlgeschlagen: %v\nAusgabe: %s", err, output)
}
return nil
cmd := exec.Command("bash", "-c", command)
output, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("befehl fehlgeschlagen: %v\nAusgabe: %s", err, output)
}
return nil
}