Skip to content

Commit

Permalink
improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Mar 6, 2023
1 parent 7e2a9c6 commit bfededa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ start <path-or-url>
$ 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
# Library Usage

Add this to your Cargo.toml
```toml
Expand All @@ -29,7 +29,15 @@ open::that("https://rust-lang.org");
open::with("https://rust-lang.org", "firefox");
```

Follow this link for the [massive API docs](https://docs.rs/open).
Follow this link for the [API docs](https://docs.rs/open).

# Binary Usage

This crate also implements a binary that acts like an opener itself.

```shell
cargo run 'file to open'
```

# Credits

Expand Down

0 comments on commit bfededa

Please sign in to comment.