doin

Crates.iodoin
lib.rsdoin
version1.0.3
sourcesrc
created_at2022-02-20 16:07:33.6605
updated_at2023-02-12 01:52:04.799424
descriptionRun commands in another directory
homepagehttps://github.com/aslilac/doin
repositoryhttps://github.com/aslilac/doin
max_upload_size
id535814
size6,283
ケイラ (aslilac)

documentation

https://docs.rs/crate/doin

README

doin

Installation

cargo install doin

I'll probably come up with some way to install prebuilt binaries later, so you don't have to have Rust/Cargo installed.

Usage

➜  pwd
/Projects/example/
➜  doin ./src/ pwd
/Projects/example/src/
➜  doin ./src/ mkdir ./foo/
➜  doin ./src/foo/ pwd
/Projects/example/src/foo/

Run commands easily in another directory! Useful for bash scripting, or if you frequently need to run commands in a bunch of different directories, but usually only run them one at a time. You don't need to cd in and out constantly, just point at each one as needed.

First argument is the directory to run the command in, and the second is the command to run. Any arguments after that will be passed to the command as-is, in order.

Commit count: 7

cargo fmt