Skip to content

Commit

Permalink
docs(rust): update relay list documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0scvr authored and adrianbenavides committed Oct 10, 2023
1 parent dfd9314 commit 05cea02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion implementations/rust/ockam/ockam_command/src/relay/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ use crate::util::node_rpc;
use crate::{docs, CommandGlobalOpts};

const PREVIEW_TAG: &str = include_str!("../static/preview_tag.txt");
const LONG_ABOUT: &str = include_str!("./static/list/long_about.txt");
const AFTER_LONG_HELP: &str = include_str!("./static/list/after_long_help.txt");

/// List Relays
#[derive(Clone, Debug, Args)]
#[command(
arg_required_else_help = false,
before_help = docs::before_help(PREVIEW_TAG),
long_about = docs::about(LONG_ABOUT),
after_long_help = docs::after_help(AFTER_LONG_HELP)
)]
pub struct ListCommand {
/// List all the relays relaying traffic to the specified node
/// Get the list of Relays at the given node
#[arg(global = true, long, value_name = "NODE")]
pub to: Option<String>,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```sh
$ ockam relay list --at n2
$ ockam relay list --to n2
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
List Relays on your default node. If you pass '--to <NODE>' then it lists the Relays at the given node.

0 comments on commit 05cea02

Please sign in to comment.