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

chore: update merod command instructions #1025

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions crates/merod/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ use relay::RelayCommand;
use run::RunCommand;

pub const EXAMPLES: &str = r"
# Initialize a new node
# Initialize node
$ merod --node-name node1 init --server-port 2428 --swarm-port 2528

# Initialize node with a custom home directory data
$ mkdir data
$ merod --home data/ --node-name node1 init

# Configure an existing node
$ merod --home data/ --node-name node1 config --server-host 143.34.182.202 --server-port 3000
$ merod --node-name node1 config --server-host 143.34.182.202 --server-port 3000

# Run a node as a peer
$ merod --home data/ --node-name node1 run
# Run a node
$ merod --node-name node1 run

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an extra line here

# Run a node as a coordinator
$ merod --home data/ --node-name node1 run --node-type coordinator
";

#[derive(Debug, Parser)]
Expand Down
1 change: 1 addition & 0 deletions crates/merod/src/cli/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub struct RelayCommand {
pub listen: SocketAddr,
}

/// Relay incoming requests to specific location
impl RelayCommand {
pub async fn run(self, root_args: RootArgs) -> EyreResult<()> {
let path = root_args.home.join(root_args.node_name);
Expand Down
Loading