unable to get description for given task name
shedali opened this issue · 3 comments
shedali commented
hello!
I had a script which used to do this
xc $(xc -f docs/TASKS.md -s | fzf --preview 'xc -md {} | mdcat')
it looks like the -md flag has been removed, but I cannot see when or why
joerdav commented
Hi there! Thanks for using xc.
Infact we had a bit of a revamp of the flags, they were a bit inconsistent. This feature now lives under -d
or -display
.
xc <task> [inputs...]
Run a task from an xc-compatible markdown file.
If -file is not specified and no README.md is found in the current directory,
xc will search in parent directories for convenience.
-f -file <string>
Specify a markdown file that contains tasks (default: "README.md").
-d -display
Print the markdown code of a task rather than running it.
-H -heading <string>
Specify the heading for xc tasks (default: "Tasks").
joerdav commented
No worries! I'm going to steal this code snippet for myself too :)