generated from PlexSheep/baserepo
docs(cli): example was broken
cargo devel CI / cargo CI (push) Has been cancelled
Details
cargo devel CI / cargo CI (push) Has been cancelled
Details
This commit is contained in:
parent
7db1833cbb
commit
d052fb2b34
|
@ -31,17 +31,7 @@ enum ReplCommand {
|
||||||
fn main() -> anyhow::Result<()> {
|
fn main() -> anyhow::Result<()> {
|
||||||
// You would normally make a proper cli interface with clap before entering the repl. This is
|
// You would normally make a proper cli interface with clap before entering the repl. This is
|
||||||
// omitted here for brevity
|
// omitted here for brevity
|
||||||
let _logger = {
|
let _logger = Logger::builder().display_time(false).build();
|
||||||
let mut this = {
|
|
||||||
let mut this = Logger::builder();
|
|
||||||
this.show_time = false;
|
|
||||||
this
|
|
||||||
};
|
|
||||||
let max_level = Level::INFO;
|
|
||||||
this.max_level = max_level;
|
|
||||||
this
|
|
||||||
}
|
|
||||||
.build()?;
|
|
||||||
|
|
||||||
// the compiler can infer that we want to use the ReplCommand enum.
|
// the compiler can infer that we want to use the ReplCommand enum.
|
||||||
let mut repl = DefaultRepl::<ReplCommand>::default();
|
let mut repl = DefaultRepl::<ReplCommand>::default();
|
||||||
|
|
Reference in New Issue