Skip to content

feat: Implement JSON output for remaining commands#452

Open
adamspofford-dfinity wants to merge 4 commits intomainfrom
spofford/json-everywhere
Open

feat: Implement JSON output for remaining commands#452
adamspofford-dfinity wants to merge 4 commits intomainfrom
spofford/json-everywhere

Conversation

@adamspofford-dfinity
Copy link
Contributor

@adamspofford-dfinity adamspofford-dfinity commented Mar 19, 2026

This should be all the commands that need it. JSON mode is included for any command that has a true primary output (println! as opposed to info!), unless that output is already 'quiet'.

@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review March 19, 2026 22:36
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner March 19, 2026 22:36
Comment on lines +86 to +90
#[derive(Serialize)]
struct JsonIdentity {
name: String,
principal: Principal,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#[derive(Serialize)]
struct JsonIdentity {
name: String,
principal: Principal,
}
#[derive(Serialize)]
struct JsonIdentity {
name: String,
principal: Principal,
default: bool,
}

identity list also shows which id is currently set as default

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.

2 participants