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 clap::Parser;
use libpt_cli::args::VerbosityLevel; use libpt_cli::args::VerbosityLevel;
use libpt_cli::{clap, printing}; use libpt_cli::printing;
use libpt_log::{debug, Logger}; use libpt_log::{debug, Logger};
/// This is the help /// This is the help

View File

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

View File

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

View File

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

View File

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