News for hackers. Stuff that matters.
Re:CLI user experience case study by cb321 on Friday January 12, 2024 @12:22PM (#38970938)
There is also generating the whole thing from a function signature (e.g. https://github.com/c-blake/cligen ) since then CLauthors need not learn a new spec language, but then CLauthors must add back in helpful usage metadata/semantics and still need to learn a library API (but I like how those latter two things can be "gradual"). It's a hard space in which to find perfection, but I wish you luck in your attempt!
Re:CLI user experience case study by jdxcode on Friday January 12, 2024 @12:26PM (#38970995)
My goal is that one day framework authors will adopt this (they might do it quickly since it’s a hell of a lot easier to dump a usage spec and generate completions than it is figuring out how to write completions for each shell).

At that point it would make sense for them to also make scaffolding generators, meaning the cli author only has to write one spec and don’t have to repeat the effort for their code so much.

Re:CLI user experience case study by jdxcode on Friday January 12, 2024 @12:32PM (#38971099)
I think there are 2 ways usage will be used, either as an under the hood format used by frameworks to make frameworks better, or directly by users to scaffold framework code