cmdgate
provides a way to call cmd commands from other CLIs such as bash from WSL.
- Using scoop
scoop bucket add sky-bucket https://github.com/skyppex/sky-bucket
scoop install sky-bucket/cmdgate
- Build it your self
Make sure you have
cargo
andrustc
installed. Then pull the repo onto your machine.
git clone https://github.com/Skyppex/cmdgate.git
Navigate to the path containing the cargo.toml
file.
Make sure to take a look at the code so you know its not malware (i had some problems with my anti malware software netralizing the binary when i ran it).
Run cargo build --release
and the executable will be dumped in the ./target/release
folder. From there you have the binary and can execute it from your command line. :D
It's recommended to add it to your PATH or copy it to a folder already in your PATH.
At any time when running the command you can use -h
or --help
to see all the options available.
-s or --source
-> Path to file to read from, otherwise it uses stdin-d or --destination
-> Path to file to write to, otherwise it uses stdout-c or --command
-> cmd command to run (REQUIRED)-v or --version
-> This will print the version number
If you have some functionality you wish to add then make a PR. If you find a bug or want to discuss something about the tool make an issue out of it and we can discuss it :D
This tool is under CC0
so feel free to do whatever you want with it with no obligation to credit me.