Skip to content

feat: Candid building command#416

Open
adamspofford-dfinity wants to merge 3 commits intomainfrom
spofford/candid-assist-command
Open

feat: Candid building command#416
adamspofford-dfinity wants to merge 3 commits intomainfrom
spofford/candid-assist-command

Conversation

@adamspofford-dfinity
Copy link
Contributor

Also factors out the candid assist related code, and adds support for specifying a candid file to both candid build and canister call.

@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review March 6, 2026 21:29
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner March 6, 2026 21:29
Err(e) => return Err(e).context("failed to look up canister ID"),
};
let Some(interface) = get_candid_type(&agent, cid).await else {
bail!("could not fetch Candid interface from canister {cid}");
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
bail!("could not fetch Candid interface from canister {cid}");
bail!("Could not fetch Candid interface from `candid:service` metadata section of canister {cid}");

/// If not provided, an interactive prompt will be launched.
pub(crate) method: Option<String>,

/// Output file path. Pass `-` for stdout.
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this a little unusual, why not make it optional?

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