chore: rename service to forest
This commit is contained in:
parent
434f655059
commit
fefa3647a4
@ -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?;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user