Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
36
vendor/open/README.md
vendored
Normal file
36
vendor/open/README.md
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[](https://crates.io/crates/open)
|
||||
[](https://github.com/Byron/open-rs/actions?query=workflow%3Across-platform-testing)
|
||||
|
||||
Use this library to open a path or URL using the program configured on the system. It is equivalent to running one of the following:
|
||||
|
||||
```bash
|
||||
# macOS
|
||||
$ open <path-or-url>
|
||||
# Windows
|
||||
$ start <path-or-url>
|
||||
# Linux
|
||||
$ xdg-open <path-or-url> || gio open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url> || wslview <path-or-url>
|
||||
```
|
||||
|
||||
# Usage
|
||||
|
||||
Add this to your Cargo.toml
|
||||
```toml
|
||||
[dependencies]
|
||||
open = "3"
|
||||
```
|
||||
…and open something using…
|
||||
```Rust
|
||||
open::that("https://rust-lang.org");
|
||||
```
|
||||
|
||||
…or, open something with an application of your choice
|
||||
```Rust
|
||||
open::with("https://rust-lang.org", "firefox");
|
||||
```
|
||||
|
||||
Follow this link for the [massive API docs](https://docs.rs/open).
|
||||
|
||||
# Credits
|
||||
|
||||
The implementation is based on the respective functionality of [Cargo](https://github.com/rust-lang/cargo), but was improved to allow some error handling.
|
||||
Loading…
Add table
Add a link
Reference in a new issue