3 ms·
One of the things that we discovered when trying to build out a declarative standard is that it can never encompass everything, precisely because many CLI tools
by mschrage 5y ago
One of the things that we discovered when trying to build out a declarative standard is that it can never encompass everything, precisely because many CLI tools implement their parsing logic imperatively! Our solution was to start off with a declarative schema, that can be supplemented with an imperative escape hatch.
- chubot 5y agoYes I'd like to see how the imperative escape hatches work for Fig and Murex (and how many completions needs to use it) Actually I just remembered I enumerated some "unusual cases" here: https://github.com/oilshell/oil/wiki/Diversity-in-Command-Line-Syntax https://github.com/oilshell/oil/wiki/Diversity-in-Command-Li... Is the escape hatch for Fig in JavaScript? One thing I would like to see "rescued" from Shellac is the idea of allowing the escape hatch to be in any language, not Oil or Murex, or JS. In particular, it could be the language that the tool itself is written in!