docs: fix cli example deps
cargo devel CI / cargo CI (push) Successful in 2m11s Details

This commit is contained in:
Christoph J. Scherr 2024-08-30 16:09:14 +02:00
parent 43944b0e34
commit 7eb7d95f94
5 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
use clap::Parser;
use libpt_cli::args::VerbosityLevel;
use libpt_cli::{clap, printing};
use libpt_cli::printing;
use libpt_log::{debug, Logger};
/// This is the help

View File

@ -1,6 +1,6 @@
use console::style;
use libpt_cli::printing;
use libpt_cli::repl::{DefaultRepl, Repl};
use libpt_cli::{clap, printing, strum};
use libpt_log::{debug, Logger};
use clap::Subcommand;

View File

@ -77,9 +77,9 @@ Author: {author-with-newline}
/// Get the loglevel like this:
///
/// ```no_run
/// # use libpt_cli::args::VerbosityLevel;
/// use libpt_cli::args::VerbosityLevel;
/// use libpt_log::Level;
/// # use clap::Parser;
/// use clap::Parser;
///
/// # #[derive(Parser, Debug)]
/// # pub struct Opts {

View File

@ -42,7 +42,7 @@ use console::{style, Color};
/// # Example
///
/// ```
/// use libpt_cli::console::Color;
/// use console::Color;
/// use libpt_cli::printing::blockprint;
/// # fn main() {
/// blockprint("Hello world!", Color::Blue);
@ -64,7 +64,7 @@ pub fn blockprint(content: impl ToString, color: Color) {
/// # Example
///
/// ```
/// use libpt_cli::console::Color;
/// use console::Color;
/// use libpt_cli::printing::blockfmt;
/// # fn main() {
/// let formatted_content = blockfmt("Hello world!", Color::Blue);
@ -93,8 +93,8 @@ pub fn blockfmt(content: impl ToString, color: Color) -> String {
///
/// # Example
/// ```
/// use libpt_cli::comfy_table::{presets, CellAlignment, ContentArrangement};
/// use libpt_cli::console::Color;
/// use comfy_table::{presets, CellAlignment, ContentArrangement};
/// use console::Color;
/// use libpt_cli::printing::blockfmt_advanced;
/// # fn main() {
/// println!(

View File

@ -27,8 +27,8 @@ use libpt_log::trace;
///
/// ```no_run
/// use libpt_cli::repl::{DefaultRepl, Repl};
/// use libpt_cli::clap::Subcommand;
/// use libpt_cli::strum::EnumIter;
/// use clap::Subcommand;
/// use strum::EnumIter;
///
/// #[derive(Subcommand, Debug, EnumIter, Clone)]
/// enum ReplCommand {