Hi Marcus,
I ran into a small CLI bug while creating an epic from a review.
td epic create is advertised in the help output, but currently fails even for a plain epic:
td version
# td version 0.44.0
tmpdir=$(mktemp -d)
cd "$tmpdir"
git init -q
td init >/dev/null
td epic create "Plain probe epic"
Actual result:
ERROR: flag accessed but not defined: desc
Error: flag accessed but not defined: desc
The same happens with the documented description flag:
td epic create "Probe epic" --description "probe description"
Workaround works fine:
td create "Probe epic" --type epic --description "probe description"
From a quick source look, cmd/epic.go delegates epicCreateCmd to createCmd.RunE, but createCmd always resolves the rich-text aliases description, desc, body, and notes, while epicCreateCmd only defines description. It also does not define description-file, which the shared create path may read next.
Observed on:
td version 0.44.0
- Homebrew install from
marcus/tap
- macOS arm64
Expected: td epic create "Title" should create an epic, and --description should work as advertised.
Thanks.
Hi Marcus,
I ran into a small CLI bug while creating an epic from a review.
td epic createis advertised in the help output, but currently fails even for a plain epic:Actual result:
The same happens with the documented description flag:
Workaround works fine:
From a quick source look,
cmd/epic.godelegatesepicCreateCmdtocreateCmd.RunE, butcreateCmdalways resolves the rich-text aliasesdescription,desc,body, andnotes, whileepicCreateCmdonly definesdescription. It also does not definedescription-file, which the shared create path may read next.Observed on:
td version 0.44.0marcus/tapExpected:
td epic create "Title"should create an epic, and--descriptionshould work as advertised.Thanks.