by etaioinshrdlu · 7y ago · 0 comments
Some type of crawler would interact with a program, parse its --help output, man page, or any other info available, to enumerate all possible options and their formatting.
It sounds like a really messy program considering how inconsistent CLI's are.
Anyways, a GUI could help massively with discoverability.
Such a tool could help bridge the gap a little between GUI and CLI.
Discovering exclusive options, or options that must be specified together, sound like exactly the sorts of things it could deduce, when every invocation with/without certain pairs of options fails.
Perhaps wrapper-utilities like 'Gooey' or some sort of automated-probing could encourage a greater formalization for specifying de-facto command-line APIs. Then, command-line programs might want to offer not just the human-interpretable help texts and docs, but more rigorous usage-specs that could drive automatic wrappers.
Perhaps the probing could happen in a VM / container image which would reset after each invocation.
seems you could generate something with fire tool and then parse it dynamically with Gooey.