diff options
| author | Anton Medvedev <anton@medv.io> | 2025-12-07 20:52:24 +0100 |
|---|---|---|
| committer | Anton Medvedev <anton@medv.io> | 2025-12-07 20:52:24 +0100 |
| commit | e11a41ce4534f9149dd048a21db5e5cde46b9f61 (patch) | |
| tree | df6896862e535cf703486d2aba1a84fcbe6e14ea | |
| parent | 2943298cbb12fca5b720c877fcdfcde08e65c8d8 (diff) | |
Trim `.git` suffix from flag name in `main.go`
| -rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ import ( "path/filepath" "regexp" "runtime/pprof" + "strings" "github.com/antonmedv/gitmal/pkg/git" @@ -97,6 +98,7 @@ func main() { if flagName == "" { flagName = filepath.Base(input) + flagName = strings.TrimSuffix(flagName, ".git") } themeColor, ok := themeStyles[flagTheme] |
