-
Notifications
You must be signed in to change notification settings - Fork 5
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
Command: criticalup doc
#78
Conversation
crates/criticalup-cli/src/errors.rs
Outdated
@@ -120,6 +120,19 @@ pub(crate) enum Error { | |||
tracing_subscriber::util::TryInitError, | |||
), | |||
|
|||
#[error("Failed to open document in the browser at {}", path.display())] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we provide the user with a proper file url for their browser so they can link-click it or paste it directly?
I think you can use https://docs.rs/url/latest/url/struct.Url.html#method.from_file_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea. Let me change this.
Rest looks good. :) |
45cee7a
to
474ec74
Compare
Tests should not open users' browsers. Reviewed-by: Ana Hobden <ana.hobden@ferrous-systems.com>
Reviewed-by: Ana Hobden <ana.hobden@ferrous-systems.com>
739c1c3
to
439f036
Compare
27bde10
to
f34f237
Compare
bors merge |
👎 Rejected by too few approved reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
Build succeeded: |
Adds a sub-command
doc
so the user does not have to look for docs manually.For a given installation:
criticalup doc
opens the doc url in default browser on the system.criticalup doc --path
prints the path to the doc root.