# Outputting Command Execution
The `oce` outputs a file that inclues:
1. An executed command
2. The result of it
## Usage
Examples are [here](https://github.com/tkeiyama/oce/tree/main/examples).
A CLI example is below.
```bash
$ cargo install oce
$ cargo oce git status
# The result is like
$ git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
../../.gitignore
../../Cargo.toml
../
../../result
../../src/
nothing added to commit but untracked files present (use "git add" to track)
```
A library sample usage is below.
The result is the same as above.
```rust
use oce::oce;
use std::env;
fn main() {
let command = "git status".to_string();
oce(&command);
}
```
## License
OCE is [MIT Licensed](./LICENSE).