Skip to content

Commit

Permalink
Adjust doc; cut release
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Mar 8, 2020
1 parent 94b129a commit ead2494
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "open"
version = "1.3.5-alpha.0"
version = "1.4.0"
authors = ["Sebastian Thiel <[email protected]>"]
license = "MIT"
edition = "2018"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ $ open <path-or-url> || xdg-open <path-or-url> || gnome-open <path-or-url> || kd
Add this to your Cargo.toml
```toml
[dependencies]
open = "*"
open = "1"
```
... and open something using
and open something using
```Rust
open::that("https://rust-lang.org");
```

or, open with something app
or, open something with an application of your choice
```Rust
open::with("https://rust-lang.org", "firefox");
```
Expand Down
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<a name="v1.2.0"></a>
## v1.4.0 (2020-03-08)

* add `open::with(path, app)` and `open::with_in_background(…)`

## v1.3.4 (2020-02-11)

* Add LICENSE.md and README.md into the crates.io tarball.
Expand Down
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
//! open::that("http://rust-lang.org").unwrap();
//! # }
//! ```
//! Alternatively, specify the program to open something with. It should expect to receive the path or URL as first argument.
//! ```test_harness,no_run
//! extern crate open;
//!
//! # #[test]
//! # fn doit() {
//! open::with("http://rust-lang.org", "firefox").unwrap();
//! # }
//! ```
//!
//! # Notes
//!
Expand Down

0 comments on commit ead2494

Please sign in to comment.