Skip to content

Commit

Permalink
command updates!
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaya-Sem committed Dec 5, 2024
1 parent 376d3c0 commit 3a919e8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 3 additions & 1 deletion cmd/shortcuts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"fmt"

"github.com/charmbracelet/lipgloss"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -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)
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 3a919e8

Please sign in to comment.