chore: rename service to forest

This commit is contained in:
Kasper Juul Hermansen 2025-02-07 21:37:20 +01:00
parent 434f655059
commit fefa3647a4
Signed by: kjuulh
SSH Key Fingerprint: SHA256:RjXh0p7U6opxnfd3ga/Y9TCo18FYlHFdSpRIV72S/QM

View File

@ -14,7 +14,7 @@ struct Command {
#[derive(Subcommand)] #[derive(Subcommand)]
enum Commands { enum Commands {
Serve { Serve {
#[arg(env = "SERVICE_HOST", long, default_value = "127.0.0.1:3000")] #[arg(env = "FOREST_HOST", long, default_value = "127.0.0.1:3000")]
host: SocketAddr, host: SocketAddr,
}, },
} }
@ -22,8 +22,8 @@ enum Commands {
pub async fn execute() -> anyhow::Result<()> { pub async fn execute() -> anyhow::Result<()> {
let cli = Command::parse(); let cli = Command::parse();
if let Some(Commands::Serve { host }) = cli.command { if let Some(Commands::Serve { .. }) = cli.command {
tracing::info!("Starting service"); tracing::info!("Starting forest server");
let state = SharedState::new().await?; let state = SharedState::new().await?;
} }