Skip to content

rust(feat): sift cli get assets - #731

Merged
Brandon-Shippy merged 4 commits into
mainfrom
rust/sift-cli-get-assets
Aug 19, 2026
Merged

rust(feat): sift cli get assets#731
Brandon-Shippy merged 4 commits into
mainfrom
rust/sift-cli-get-assets

Conversation

@Brandon-Shippy

@Brandon-Shippy Brandon-Shippy commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

Adds sift-cli get asset for listing assets. Returns in a table by default with hyperlinks to the asset in explore. By default we list out the most recent 50 assets by modified_on date
It has a few flags:
- --filter takes a CEL expression
- --limit lets you edit how many rows you get back
- --output-format lets you determine the output format, current flags are text and json

Verification

  • Unit tests
  • Manual testing

@Brandon-Shippy Brandon-Shippy changed the title Rust/sift cli get assets rust(feat): sift cli get assets Aug 18, 2026
@Brandon-Shippy
Brandon-Shippy marked this pull request as ready for review August 18, 2026 21:47

@wei-qlu wei-qlu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@Brandon-Shippy
Brandon-Shippy merged commit 4ca4b12 into main Aug 19, 2026
22 checks passed
@Brandon-Shippy
Brandon-Shippy deleted the rust/sift-cli-get-assets branch August 19, 2026 17:39
let ListAssetsResponse { assets, .. } = AssetServiceClient::new(grpc_channel)
.list_assets(ListAssetsRequest {
filter: args.filter.unwrap_or_default(),
order_by: "modified_date desc".to_string(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be exposed as an option

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
};

const ASSET_ID_CHAR_LENGTH_WHITESPACE_LENGTH: usize = 38;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use an ASCII table crate instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

#[derive(clap::Args)]
pub struct GetAssetArgs {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will be using these in a lot of other get subcommands so this should be a reusable struct that we flatten

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants