|
|
|
|
|
by abathur
1375 days ago
|
|
I have a hard time imagining how we get out of the gravity well of CLI programs handling their own parsing. A tool I write has a use-case for understanding the syntax of at least ~common CLI tools well enough to pick out args that will be other executables (sudo cat, find blah -exec...), so I have been idly pondering whether there's a humane, declarative, descriptive grammar that can express nearly all CLI interfaces. It's probably not worth the work for my case, but it might get to be more tractable if it was also an input for better completion, help, linting, etc. tools. Ideally something that drives enough all-around value that projects would start up streaming the grammars (and maybe adopting an associated parser?) |
|