6 releases

0.0.6 Jun 1, 2024
0.0.5 Apr 16, 2024
0.0.4 Feb 2, 2024
0.0.3 Jan 2, 2024
0.0.1 Jun 4, 2023

#1081 in Command-line interface

Download history 1/week @ 2024-06-16 3/week @ 2024-09-22 71/week @ 2024-09-29

74 downloads per month

MIT/Apache

36KB
76 lines

shrs_command_timer

shrs plugin to time runtime of commands

crates.io MIT/Apache 2.0

This is a plugin for shrs.

Using this plugin

First add this plugin to your dependencies

shrs_command_timer = { version = "0.0.6" }

Then include this plugin when initializing shrs

use shrs::prelude::*;
use shrs_command_timer::CommandTimerPlugin;

let myshell = ShellBuilder::default()
    .with_plugin(CommandTimerPlugin)
    .build()
    .unwrap();


lib.rs:

Capture stdout and stderr of previous command outputs

Dependencies

~16–33MB
~469K SLoC