3 releases
Uses old Rust 2015
0.1.2 | Apr 22, 2018 |
---|---|
0.1.1 | Apr 22, 2018 |
0.1.0 | Apr 5, 2018 |
#110 in #simple
5KB
62 lines
Hike
Have you ever wanted to run just one command in a different
directory? Did you have to cd
there, do your thing and then cd
back where
you came from? No matter what you do, it'll always take at least three commands!
Don't you find that frustrating?
It's time your worries took a Hike!
Jokes aside, Hike is a small program I wrote for getting to know the Rust crate release process better. Running it with
$ hike some_dir "some --command with --arguments=and | possibly --pipes"
is equivalent to
$ pushd some_dir
$ some --command with --arguments=and | possibly --pipes
$ popd
It tries to be as transparent as possible and passes whatever stderr/stdout
output or error code the inner command produces back to your shell as if you
used pushd
/popd
. Using the system()
libc function ensures that it'll
always use its enclosing shell.
Enjoy!
Dependencies
~4.5MB
~97K SLoC