Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI and API starting point #311

Merged
merged 7 commits into from
Oct 10, 2022
Merged

Conversation

faassen
Copy link
Contributor

@faassen faassen commented Oct 10, 2022

The CLI and API as proposed only has a few commands, and the original CLI and API had a lot more. In this PR I've stripped out all parts of the API and CLI we're not using yet, to have a clean starting point.

I have changed the no-metrics flag to the metrics option, as discussed in n0-computer/beetle#156

The individual commands don't conform to the proposed new designs yet. I also haven't implemented any start or stop command. But before I make more changes, this is a good point to do a PR, as it's still simple to review what's going on.

The CLI test that exercises a fixture has been changed to be iroh p2p lookup as well, though it doesn't yet define the correct answer.

This fixes n0-computer/beetle#170

It implements n0-computer/beetle#182 too, though by just following what Clap does by default anyway (see the comment about the iroh-ctl name we get back though)

@faassen faassen merged commit dd1dc70 into n0-computer:main Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restrict commands we don't support yet in the CLI
2 participants