Re:Argdown – a simple syntax for complex argumentation
by wheybags on Sunday February 14, 2021 @04:31PM
(#26136454)
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.
[ Parent
| on HN ]
Re:Argdown – a simple syntax for complex argumentation
by jka on Sunday February 14, 2021 @05:47PM
(#26137015)
What 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.
Re:Argdown – a simple syntax for complex argumentation
by wheybags on Sunday February 14, 2021 @06:50PM
(#26137451)
The 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/ guys too
Re:Argdown – a simple syntax for complex argumentation
by tmpfs on Sunday February 14, 2021 @07:47PM
(#26137780)
I had a crack at this here:
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.
Re:Argdown – a simple syntax for complex argumentation
by Fire-Dragon-DoL on Monday February 15, 2021 @07:34AM
(#26142118)
Interesting. In combination with this, it could make writing bash scripts way easier https://argbash.io/
I can picture documenting the stuff with your tool, then one click and POP! All you need is the implementation.