fix(app): implement wsl's formatting suggestions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-27 23:08:17 +02:00
parent b28dae3bd0
commit 31f475acb6
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 7 additions and 0 deletions

@ -46,6 +46,7 @@ func help(*cobra.Command, []string) {
log.Println(err)
os.Exit(1)
}
os.Exit(0)
}

@ -35,6 +35,7 @@ func getVersion() string {
if !shortVersion {
return appName + " - " + version
}
return GetShortVersion()
}

@ -12,6 +12,7 @@ import (
func TestNixFlake_GosrcVersionStringEquivalence(t *testing.T) {
want := GetShortVersion()
fData, err := os.ReadFile("../flake.nix")
if err != nil {
t.Errorf("Failed to open flake.nix: %q", err)

@ -54,6 +54,7 @@ func RunApp() {
func newApp() {
a = app.New()
log.Println("Created a new fyne application")
}
@ -65,6 +66,7 @@ func getApp() fyne.App {
func makeGreeting() *widget.Label {
w := widget.NewLabel(appGreeting)
w.TextStyle.Monospace = true
return w
}
@ -79,6 +81,7 @@ func makeToolbar() *widget.Toolbar {
}),
widget.NewToolbarAction(theme.InfoIcon(), aboutWindow),
)
return toolbar
}
@ -88,6 +91,7 @@ func makeTabs() *container.AppTabs {
container.NewTabItem("what if?", widget.NewLabel("serious answers to absurd questions and absurd advice for common concerns from xkcd's Randall Munroe")),
container.NewTabItemWithIcon("search", theme.SearchIcon(), makeSearchTab()),
)
return tabs
}