Expand description
Generate commands for opening paths and URIs in the default system handler.
These methods return std::process::Command
instances that can immediately be run to open
the given target, or modified to provide different stdin/stdout/stderr streams.
This crate used https://dwheeler.com/essays/open-files-urls.html as a reference.
Enums§
- Errors that may occur when generating a
Command
. - A local file path or a remote URI.
Constants§
- The environment variable checked when opening in a web browser.
- The environment variable checked when opening in a text editor.
Functions§
- Open the target in the default system handler.
- Open the target in the web browser specified by
BROWSER_ENV
, or the system handler if not set. - Open the target in the text editor specified by
EDITOR_ENV
, or the system handler if not set.
Type Aliases§
- Type alias for the most common results in this crate.