diff --git a/local/recipes/system/cub/source/cub-tui/src/lib.rs b/local/recipes/system/cub/source/cub-tui/src/lib.rs index 59d499c62..576789f73 100644 --- a/local/recipes/system/cub/source/cub-tui/src/lib.rs +++ b/local/recipes/system/cub/source/cub-tui/src/lib.rs @@ -8,7 +8,10 @@ use termion::raw::IntoRawMode; use termion::screen::IntoAlternateScreen; const SHORTCUTS: &[(&str, &str)] = &[ - ("-S ", "Install a package from the official repo or BUR"), + ( + "-S ", + "Install a package from the official repo or BUR", + ), ("-Ss ", "Search the official repo and cached BUR"), ("-Si ", "Show AUR package information"), ("-Sy", "Refresh BUR cache and verify AUR metadata access"), @@ -27,12 +30,24 @@ const COMMANDS: &[(&str, &str)] = &[ ("search ", "Search official repo and BUR cache"), ("info ", "Query AUR metadata"), ("sync", "Refresh BUR cache and AUR sync stamp"), - ("system-upgrade", "Sync first, then update installed packages"), + ( + "system-upgrade", + "Sync first, then update installed packages", + ), ("build ", "Build and install a local recipe tree"), ("get ", "Copy a BUR recipe into the current directory"), - ("get-aur ", "Convert an AUR PKGBUILD into ~/.cub/recipes"), - ("inspect ", "Inspect a local RBPKGBUILD or package metadata"), - ("import-aur ", "Convert an AUR PKGBUILD into the current directory"), + ( + "get-aur ", + "Convert an AUR PKGBUILD into ~/.cub/recipes", + ), + ( + "inspect ", + "Inspect a local RBPKGBUILD or package metadata", + ), + ( + "import-aur ", + "Convert an AUR PKGBUILD into the current directory", + ), ("update-all", "Update installed packages"), ("remove ", "Remove an installed package"), ("query-local", "List installed packages"), @@ -56,15 +71,30 @@ pub fn run() -> io::Result<()> { } } - write!(screen, "{}{}{}", clear::All, cursor::Goto(1, 1), cursor::Show)?; + write!( + screen, + "{}{}{}", + clear::All, + cursor::Goto(1, 1), + cursor::Show + )?; screen.flush() } fn render(screen: &mut impl Write) -> io::Result<()> { - write!(screen, "{}{}{}", clear::All, cursor::Goto(1, 1), cursor::Hide)?; + write!( + screen, + "{}{}{}", + clear::All, + cursor::Goto(1, 1), + cursor::Hide + )?; writeln!(screen, "cub — Red Bear OS Package Builder")?; writeln!(screen)?; - writeln!(screen, "Default TUI mode is active because no subcommand was provided.")?; + writeln!( + screen, + "Default TUI mode is active because no subcommand was provided." + )?; writeln!(screen, "Run `cub --no-tui` to see clap help instead.")?; writeln!(screen)?; writeln!(screen, "Arch-style shortcuts")?;