cargo-liner 0.10.1

Cargo subcommand to install and update binary packages listed in configuration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Implementations of the various CLI commands.

use tabled::settings::Style;
use tabled::{Table, Tabled};

pub mod completions;
pub mod import;
pub mod jettison;
pub mod ship;

/// Builds a [`Table`] from the given iterator with a default style.
fn styled_table(iter: impl IntoIterator<Item = impl Tabled>) -> Table {
    let mut table = Table::new(iter);
    table.with(Style::sharp());
    table
}