blob: a104db7b9727317e9a168e55b3cc6c57f12a3488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//! The `relay` subcommand.
use clap::{ArgMatches, Parser};
use tor_rtcompat::Runtime;
use crate::{ArtiConfig, Result};
/// The relay subcommands the arti CLI will be augmented with.
#[derive(Debug, Parser)]
pub(crate) enum RelaySubcommands {
/// Run Arti in relay mode acting as a relay of the Tor network.
Relay(Relay),
}
#[derive(Debug, Parser)]
pub(crate) struct Relay {}
/// Run the `relay` subcommand.
#[allow(clippy::needless_pass_by_value)]
pub(crate) fn run<R: Runtime>(
_runtime: R,
_matches: &ArgMatches,
_config: &ArtiConfig,
) -> Result<()> {
// TODO: Actually implement the launch of a relay.
todo!()
}
|