diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0907828..8087296 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: - name: Extract Version from main.go id: get_version run: | - VERSION=$(grep -oP '(?<=Version = ")[^"]*' main.go) + VERSION=$(grep -oP '(?<=Version = ")[^"]*' cmd/version.go) echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Get Latest Commit Info diff --git a/cmd/connection.go b/cmd/connection.go index b39994c..5186da0 100644 --- a/cmd/connection.go +++ b/cmd/connection.go @@ -24,9 +24,9 @@ func handleConnection(stationFrom string, stationTo string) { } columns := []teaTable.Column{ - {Title: "D", Width: 9}, + {Title: "Vertrek", Width: 9}, {Title: "Duur", Width: 7}, - {Title: "A", Width: 7}, + {Title: "Aankomst", Width: 7}, {Title: "Spoor", Width: 10}, } diff --git a/cmd/root.go b/cmd/root.go index 616630b..ec2b691 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -27,7 +27,7 @@ You can use it with station names directly or configure shortcuts for frequent r for _, c := range cmd.Root().Commands() { if c.Name() == args[0] { found = true - fmt.Printf("Please use: commandtrein %s --help for more information\n", args[0]) + fmt.Printf("Please use: commandtrein %s --help for more information\n\n", args[0]) break } } diff --git a/cmd/shortcuts.go b/cmd/shortcuts.go index 2a717b8..36549bf 100644 --- a/cmd/shortcuts.go +++ b/cmd/shortcuts.go @@ -3,6 +3,7 @@ package cmd import ( "fmt" + "github.com/charmbracelet/lipgloss" "github.com/spf13/cobra" ) @@ -35,7 +36,8 @@ func shortcutCmd() *cobra.Command { Run: func(cmd *cobra.Command, args []string) { fmt.Println("Configured shortcuts:") for name, shortcut := range config.Shortcuts { - fmt.Printf(" %s: %s → %s\n", name, shortcut.Station1, shortcut.Station2) + style := lipgloss.NewStyle().Italic(true) + fmt.Printf(" %s: %s → %s\n", style.Render(name), shortcut.Station1, shortcut.Station2) } }, }, diff --git a/cmd/version.go b/cmd/version.go index ee93f94..b7198f7 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" ) -const Version = "1.1.1" +const Version = "2.1.1" func NewVersionCommand() *cobra.Command { return &cobra.Command{