replay_pty 1.0.0

A CLI tool to record and replay shell commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::RunnableCommand;
use crate::errors::ReplayResult;
use crate::paths;
use clap::Args;

#[derive(Args, PartialEq, Eq, Debug)]
pub struct ClearCommand {}

impl RunnableCommand for ClearCommand {
    fn run(&self) -> ReplayResult<()> {
        paths::clear_replay_dir()?;
        println!("Sessions cleared");
        Ok(())
    }
}