3 ms·
I got excited thinking this was going to be a tool for expressing grammars for arguments to command line tools in a parseable format, maybe even with a code gen
by wheybags 6y ago
I got excited thinking this was going to be a tool for expressing grammars for arguments to command line tools in a parseable format, maybe even with a code generator attached.
- jka 6y agoWhat would you use tools like those for, out of interest? Edit: I might have mis-parsed your comment, although that might not have been clear from my question. I now guess you were expecting tools that assist with CLI argument representation. That's an interesting area too, but Argdown is intended to represent natural language propositions that people can debate.
- wheybags 6y agoThe main thing is that if you knew a program supported it, you could have your shell autocomplete arguments. I know there are tools for doing this from man pages, but they're basically using heuristics, and don't always work. Would be nice for the https://explainshell.com/ https://explainshell.com/ guys too
- tmpfs 6y agoI had a crack at this here: https://github.com/mkdoc/mkcli https://github.com/mkdoc/mkcli One of these days i would like to rewrite it in Go or Rust. I even got around to generating bash/zsh completion scripts from the generated program descriptor.
- wheybags 6y ago:o nice!
- Fire-Dragon-DoL 6y agoInteresting. In combination with this, it could make writing bash scripts way easier https://argbash.io/ https://argbash.io/ I can picture documenting the stuff with your tool, then one click and POP! All you need is the implementation.