joerdav / xc

Markdown defined task runner.
https://xcfile.dev/
MIT License
1.04k stars 25 forks source link

unable to get description for given task name #89

Closed shedali closed 1 year ago

shedali commented 1 year ago

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 1 year ago

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").
shedali commented 1 year ago

thank you @joerdav !

joerdav commented 1 year ago

No worries! I'm going to steal this code snippet for myself too :)