cargo-memex 0.2.0

Compile and execute rust code as memes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::build::BuildCommand;
use crate::exec::ExecCommand;
use structopt::StructOpt;

/// Similarly to cargo run, but with memes
#[derive(Debug, StructOpt)]
#[structopt(name = "run")]
pub struct RunCommand {
    #[structopt(flatten)]
    build: BuildCommand,
}

impl RunCommand {
    pub fn run(&self) -> anyhow::Result<()> {
        let output = self.build.run()?;
        ExecCommand::new(output.meme_path).run()
    }
}