4 releases

0.0.4 Sep 23, 2021
0.0.3 Sep 23, 2021
0.0.2 Sep 23, 2021
0.0.1 Sep 22, 2021

#525 in Command-line interface

MIT license

4KB

Outputting Command Execution

The oce outputs a file that inclues:

  1. An executed command
  2. The result of it

Usage

Examples are here.

A CLI example is below.

$ 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.

use oce::oce;
use std::env;

fn main() {
    let command = "git status".to_string();
    oce(&command);
}

License

OCE is MIT Licensed.

No runtime deps