chiark / gitweb /
Add 'uml/rndaddtoentcnt/' from commit '3cef9b224336ac4147aade20738420193e525fc5'
[hippotat.git] / src / bin / server.rs
1 // Copyright 2021 Ian Jackson and contributors to Hippotat
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 // There is NO WARRANTY.
4
5 use hippotat::prelude::*;
6
7 #[derive(StructOpt,Debug)]
8 pub struct Opts {
9   #[structopt(flatten)]
10   log: LogOpts,
11
12   #[structopt(flatten)]
13   config: config::Opts,
14 }
15
16 #[tokio::main]
17 async fn main() -> Result<(), AE> {
18   let opts = Opts::from_args();
19
20   let ics = config::read(&opts.config, LinkEnd::Server)?;
21
22   opts.log.log_init()?;
23
24   dbg!(ics);
25
26   Ok(())
27 }