Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 511bfb2

Browse files
authored
Merge pull request #20 from rivet-gg/nathan/display-avatar-upload-id
Display avatar upload ID
2 parents 0bc96ce + 2c5ed2a commit 511bfb2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

cli/src/commands/avatar.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ impl SubCommand {
2323

2424
#[derive(Tabled)]
2525
struct CustomAvatar {
26-
#[tabled(rename = "Url")]
26+
#[tabled(rename = "Upload ID")]
27+
upload_id: String,
28+
#[tabled(rename = "URL")]
2729
url: String,
2830
#[tabled(rename = "Created")]
2931
created: String,
@@ -37,9 +39,9 @@ impl SubCommand {
3739
.iter()
3840
.map(|custom_avatar| {
3941
Ok(CustomAvatar {
40-
url: custom_avatar
41-
.url()
42-
.context("custom_avatar.url")?
42+
upload_id: custom_avatar
43+
.upload_id()
44+
.context("custom_avatar.upload_id")?
4345
.to_string(),
4446
created: fmt::date(
4547
custom_avatar
@@ -51,6 +53,10 @@ impl SubCommand {
5153
.content_length()
5254
.context("custom_avatar.content_length")? as u64,
5355
)?,
56+
url: custom_avatar
57+
.url()
58+
.context("custom_avatar.url")?
59+
.to_string(),
5460
})
5561
})
5662
.collect::<Result<Vec<_>>>()?;

0 commit comments

Comments
 (0)