diff --git a/radicle-cli/src/commands/follow.rs b/radicle-cli/src/commands/follow.rs index 4713cb55..f8bbc928 100644 --- a/radicle-cli/src/commands/follow.rs +++ b/radicle-cli/src/commands/follow.rs @@ -141,7 +141,7 @@ pub fn following(profile: &Profile, alias: Option) -> anyhow::Result<()> let store = profile.policies()?; let aliases = profile.aliases(); let mut t = term::Table::new(term::table::TableOptions::bordered()); - t.push([ + t.header([ term::format::default(String::from("DID")), term::format::default(String::from("Alias")), term::format::default(String::from("Policy")), diff --git a/radicle-cli/src/commands/id.rs b/radicle-cli/src/commands/id.rs index c939cd4e..f49eb74a 100644 --- a/radicle-cli/src/commands/id.rs +++ b/radicle-cli/src/commands/id.rs @@ -521,7 +521,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { let mut revisions = term::Table::<7, term::Label>::new(term::table::TableOptions::bordered()); - revisions.push([ + revisions.header([ term::format::dim(String::from("●")).into(), term::format::bold(String::from("ID")).into(), term::format::bold(String::from("Title")).into(), diff --git a/radicle-cli/src/commands/issue.rs b/radicle-cli/src/commands/issue.rs index 07376e30..8c6c5f6c 100644 --- a/radicle-cli/src/commands/issue.rs +++ b/radicle-cli/src/commands/issue.rs @@ -682,7 +682,7 @@ where }); let mut table = term::Table::new(term::table::TableOptions::bordered()); - table.push([ + table.header([ term::format::dim(String::from("●")).into(), term::format::bold(String::from("ID")).into(), term::format::bold(String::from("Title")).into(), diff --git a/radicle-cli/src/commands/ls.rs b/radicle-cli/src/commands/ls.rs index 8d8a2d3f..46194bf9 100644 --- a/radicle-cli/src/commands/ls.rs +++ b/radicle-cli/src/commands/ls.rs @@ -148,7 +148,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { if rows.is_empty() { term::print(term::format::italic("Nothing to show.")); } else { - table.push([ + table.header([ "Name".into(), "RID".into(), "Visibility".into(), diff --git a/radicle-cli/src/commands/node/control.rs b/radicle-cli/src/commands/node/control.rs index 7a198ea8..329685ab 100644 --- a/radicle-cli/src/commands/node/control.rs +++ b/radicle-cli/src/commands/node/control.rs @@ -254,7 +254,7 @@ pub fn sessions(node: &Node) -> Result>, node let mut table = term::Table::new(term::table::TableOptions::bordered()); let now = LocalTime::now(); - table.push([ + table.header([ term::format::bold("Peer").into(), term::format::bold("Address").into(), term::format::bold("State").into(), diff --git a/radicle-cli/src/commands/patch/list.rs b/radicle-cli/src/commands/patch/list.rs index ed016b09..2ce2f0ef 100644 --- a/radicle-cli/src/commands/patch/list.rs +++ b/radicle-cli/src/commands/patch/list.rs @@ -56,7 +56,7 @@ pub fn run( ..TableOptions::default() }); - table.push([ + table.header([ term::format::dim(String::from("●")).into(), term::format::bold(String::from("ID")).into(), term::format::bold(String::from("Title")).into(), diff --git a/radicle-cli/src/commands/sync.rs b/radicle-cli/src/commands/sync.rs index 58eb5bff..81302ccf 100644 --- a/radicle-cli/src/commands/sync.rs +++ b/radicle-cli/src/commands/sync.rs @@ -321,7 +321,7 @@ fn sync_status( let local_nid = node.nid()?; let aliases = profile.aliases(); - table.push([ + table.header([ term::format::dim(String::from("●")).into(), term::format::bold(String::from("Node")).into(), term::Label::blank(),