Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit f1312fb

Browse files
committed
chore(boilerplate): Readme, Cargo Description
1 parent 73c6004 commit f1312fb

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
name = "assert_cli"
33
version = "0.1.0"
44
authors = ["Pascal Hertleif <[email protected]>"]
5+
repository = "https://github.com/killercup/assert_cli.git"
6+
homepage = "https://github.com/killercup/assert_cli"
7+
license = "MIT"
8+
readme = "README.md"
9+
documentation = "http://killercup.github.io/assert_cli/"
10+
description = "Test CLI Applications."
511

612
[features]
713
default = []

Readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Assert CLI
2+
3+
> Test CLI Applications.
4+
5+
Currently, this crate only includes basic functionality to check the output of a child process
6+
is as expected.
7+
8+
[![Build Status](https://travis-ci.org/killercup/assert_cli.svg)](https://travis-ci.org/killercup/assert_cli) [![Coverage Status](https://coveralls.io/repos/killercup/assert_cli/badge.svg?branch=master&service=github)](https://coveralls.io/github/killercup/assert_cli?branch=master)
9+
10+
## Example
11+
12+
Here's a trivial example:
13+
14+
```rust
15+
extern crate assert_cli;
16+
assert_cli::assert_cli_output("echo", &["42"], "42").unwrap();
17+
```
18+
19+
And here is one that will fail:
20+
21+
```rust,should_panic
22+
extern crate assert_cli;
23+
assert_cli::assert_cli_output("echo", &["42"], "1337").unwrap();
24+
```
25+
26+
this will show a nice, colorful diff in your terminal, like this:
27+
28+
```diff
29+
-1337
30+
+42
31+
```
32+
33+
## License
34+
35+
MIT

0 commit comments

Comments
 (0)