oce

Crates.iooce
lib.rsoce
version0.0.4
sourcesrc
created_at2021-09-22 18:45:37.846014
updated_at2021-09-23 06:41:55.759371
descriptionOutput Command Execution
homepage
repositoryhttps://github.com/tkeiyama/oce
max_upload_size
id455054
size4,397
Tomoaki Keiyama (tkeiyama)

documentation

README

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.

Commit count: 0

cargo fmt