Skip to content

Commit a4dbfd1

Browse files
committed
Use colored for GraphQL output
1 parent 3bfafd7 commit a4dbfd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/graphql/gid.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use base64::{engine::general_purpose, Engine};
22
use clap::ValueEnum;
3+
use colored::Colorize;
34
use eyre::{eyre, Context, Report, Result};
45
use std::{
56
fmt::{Debug, Display},
@@ -67,7 +68,7 @@ impl Display for Gid {
6768

6869
impl Debug for Gid {
6970
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70-
write!(f, "{} {} ({})", self.name, self.id, self.id_type)
71+
write!(f, "{} {} ({})", self.name, self.id.bold(), self.id_type)
7172
}
7273
}
7374

0 commit comments

Comments
 (0)