Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Candid UI URL to dfx info #3748

Merged
merged 5 commits into from
May 10, 2024

Conversation

sesi200
Copy link
Contributor

@sesi200 sesi200 commented May 8, 2024

Description

Adds the command dfx info candid-ui-url so that it's not necessary to run dfx deploy in order to figure out the URL

Fixes SDK-1610

How Has This Been Tested?

added e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@sesi200 sesi200 requested review from chenyan-dfinity and a team as code owners May 8, 2024 12:22
use anyhow::{bail, Context};
use url::{Host::Domain, Url};

pub(crate) fn get_candid_ui_url(env: &dyn Environment) -> DfxResult<String> {
Copy link
Member

Choose a reason for hiding this comment

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

Could we DRY this with construct_ui_canister_url in deploy.rs?

@ericswanson-dfinity ericswanson-dfinity enabled auto-merge (squash) May 10, 2024 15:06
@ericswanson-dfinity ericswanson-dfinity merged commit 425be59 into master May 10, 2024
179 checks passed
@ericswanson-dfinity ericswanson-dfinity deleted the SDK-1610-add-candid-ui-url-to-dfx-info branch May 10, 2024 15:52
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