dhth / hours

A no-frills time tracking toolkit for command line nerds

Home Page:https://tools.dhruvs.space/hours

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Unkown command "gen" for "hours"

graham-m-dunn opened this issue · comments

Installed via go install

❯ go install github.com/dhth/hours@latest
go: downloading github.com/dhth/hours v0.1.0
go: downloading github.com/spf13/cobra v1.8.0
go: downloading github.com/charmbracelet/bubbles v0.18.0
go: downloading github.com/charmbracelet/bubbletea v0.26.4
go: downloading github.com/charmbracelet/lipgloss v0.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading modernc.org/sqlite v1.30.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/charmbracelet/x/ansi v0.1.2
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading github.com/muesli/reflow v0.3.0
go: downloading github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/charmbracelet/x/term v0.1.1
go: downloading github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading golang.org/x/sync v0.7.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading golang.org/x/sys v0.20.0
go: downloading github.com/charmbracelet/x/input v0.1.0
go: downloading github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
go: downloading github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f
go: downloading modernc.org/libc v1.50.9
go: downloading modernc.org/memory v1.8.0
go: downloading modernc.org/mathutil v1.6.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
❯ export PATH=${PATH}:`go env GOPATH`/bin
❯ mkdir .local/share/hours
❯ hours gen --dbpath=.local/share/hours/testing.db
Error: unknown command "gen" for "hours"
Run 'hours --help' for usage.
Something went wrong: unknown command "gen" for "hours"

TUI works fine, was just hoping to get some test data

Hi there.
Seems like you installed version v0.1.0. The gen subcommand was added in version v0.2.0. Try getting the latest version, which, at the moment of writing is v0.3.0.

Lemme know if something is still off.
Cheers.

I was able to reproduce it on my machine. For some reason go install ...@latest still gets version v0.1.0.
Explicitly specifying a version like go install github.com/dhth/hours@v0.3.0 fixed the issue.

I haven't seen this behaviour; I'll try to investigate why this might be happening.