arg: add -c universe column

Add helper for adding universe columns

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-03 11:18:32 -07:00
parent ddba62df47
commit efadd6153b
2 changed files with 7 additions and 1 deletions

View File

@@ -155,6 +155,9 @@ impl Args {
res.columns.push(ArgColumn::Column(ColumnKind::profile(
PubkeySource::DeckAuthor,
)))
} else if column_name == "universe" {
debug!("got universe column");
res.columns.push(ArgColumn::Column(ColumnKind::Universe))
} else if let Some(profile_pk_str) = column_name.strip_prefix("profile:") {
if let Ok(pubkey) = Pubkey::parse(profile_pk_str) {
info!("got profile column for user {}", pubkey.hex());