diff options
author | Alex Auvolat <alex@adnab.me> | 2024-01-16 14:04:11 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-01-16 14:04:11 +0100 |
commit | 82a29bf6e5bf3f0d616b3214db02eb063d7a15b4 (patch) | |
tree | d2e1b706c14f3c3461218cc659cd5c59d201bea8 /src/garage/cli | |
parent | 707d85f60293099e75e5aa821c0ee66796fdaa5b (diff) | |
download | garage-82a29bf6e5bf3f0d616b3214db02eb063d7a15b4.tar.gz garage-82a29bf6e5bf3f0d616b3214db02eb063d7a15b4.zip |
help, comments: make clear that full-length node ID = public key
Generally, avoid using the "public key" terminology
Diffstat (limited to 'src/garage/cli')
-rw-r--r-- | src/garage/cli/init.rs | 2 | ||||
-rw-r--r-- | src/garage/cli/structs.rs | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/garage/cli/init.rs b/src/garage/cli/init.rs index 20813f1c..43ca5c09 100644 --- a/src/garage/cli/init.rs +++ b/src/garage/cli/init.rs @@ -43,7 +43,7 @@ pub fn node_id_command(config_file: PathBuf, quiet: bool) -> Result<(), Error> { idstr ); eprintln!( - "where <remote_node> is their own node identifier in the format: <pubkey>@<ip>:<port>" + "where <remote_node> is their own node identifier in the format: <full-node-id>@<ip>:<port>" ); eprintln!(); eprintln!("This node identifier can also be added as a bootstrap node in other node's garage.toml files:"); diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs index aba57551..be4d5bd6 100644 --- a/src/garage/cli/structs.rs +++ b/src/garage/cli/structs.rs @@ -64,7 +64,8 @@ pub enum Command { #[derive(StructOpt, Debug)] pub enum NodeOperation { - /// Print identifier (public key) of this Garage node + /// Print the full node ID (public key) of this Garage node, and its publicly reachable IP + /// address and port if they are specified in config file under `rpc_public_addr` #[structopt(name = "id", version = garage_version())] NodeId(NodeIdOpt), @@ -82,8 +83,9 @@ pub struct NodeIdOpt { #[derive(StructOpt, Debug)] pub struct ConnectNodeOpt { - /// Node public key and address, in the format: - /// `<public key hexadecimal>@<ip or hostname>:<port>` + /// Full node ID (public key) and IP address and port, in the format: + /// `<full node ID>@<ip or hostname>:<port>`. + /// You can retrieve this information on the target node using `garage node id`. pub(crate) node: String, } |