Closed jesseditson closed 7 years ago
Wow, fast work. One comment on the example output -- can it wrap the lines?
I think it might wrap based on terminal width? These are all literals so can easily manually wrap them. I think a lot of these longer messages could be made shorter by documenting more rather than linking, or by moving links to a more global place, there's quite a lot of redundancy.
This looks great. I didn't look closely at the code but based on the PR summary this is clearly an improvement.
Closing in favor of #3621
Initial work on #2157:
Summary
This PR switches the CLI to use kingpin, which has a number of advantages, namely:
noms ds --delete <ds>
, which should benoms ds delete <ds>
, and allow for creating "suites" of CLI tools, likenoms blob [command]
.thing help
commands, show it at the root and provide details whenthing --help
'dargs.length
anymore, can just mark args requirednil
when not provided by the user now that they are pointers. Could simplify things like using-1
as a proxy fornil
in general, it's also nice to have a lib handle deciding how to represent things like optional params and short flags, so it'll be consistent.
I opened this PR for initial eyes, but I'll at minimum break out the dataset command on this PR, and possibly start adding commands from #2157 (e.g.
blob
) on here depending on the temperature of the room.TODO
@<file>
stuff for file paths?examples
output from
noms
:output of
noms merge --help