-
Notifications
You must be signed in to change notification settings - Fork 159
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
refactor(iroh): add --start
option to CLI commands
#1802
Conversation
5bab7f9
to
c598523
Compare
c598523
to
18b36d0
Compare
/netsim branch arqu/fixcli |
If this passes (which is expected) https://github.com/n0-computer/iroh/actions/runs/6889635559/job/18741024267 |
looks like it is not passing |
## Description Changes for #1802 CLI command changes: * `iroh start` takes `--add` not `--source` * `iroh blob add` takes required `SOURCE` arg and not optional `--source` opt Internal changes: * reduce code duplication around starting a node * always start the metrics server (for both `iroh start` and `iroh CMD --start`) * make sure to remove the rpc lock file if aborting with error * cleanups ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - ~~[ ] Tests if relevant.~~
/netsim branch frando/fixcli edit: runs here https://github.com/n0-computer/iroh/actions/runs/6902564336 |
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
4 similar comments
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
/netsim branch frando/fixcli |
1 similar comment
/netsim branch frando/fixcli |
|
Description
Changes to CLI commands:
--start
option that starts a node, runs the command, and then shuts down the nodeiroh get
is nowiroh blob get
, and needs--start
flag to run standaloneiroh start SOURCE
is nowiroh start --add SOURCE
Notes and open questions
We could remove the
--add SOURCE
option fromiroh start
if there was a way to to keep running the node after starting it with a command. Could also be something like an--exec
option. But let's leave that to a followup.