makelink

Crates.iomakelink
lib.rsmakelink
version0.2.0
sourcesrc
created_at2019-05-31 00:57:04.808236
updated_at2021-01-19 20:18:58.935019
descriptionPortable alternative to ln/mklink with the interface of cp
homepagehttps://github.com/LPGhatguy/makelink
repositoryhttps://github.com/LPGhatguy/makelink
max_upload_size
id138064
size11,046
Lucien Greathouse (LPGhatguy)

documentation

https://github.com/LPGhatguy/makelink

README

makelink

mklink isn't usable from non-cmd.exe shells on Windows because it's a Batch built-in.

The version of ln that comes with Git Bash on Windows copies files instead of creating actual symlinks.

Enter makelink. It makes symlinks. It runs on Windows, MacOS, Linux, and maybe elsewhere.

Installation

You need a recent build of Rust.

cargo install makelink

Usage

It's the same as the cp command.

makelink <source> <dest>

Example:

echo "hi" > foo.txt
makelink foo.txt bar.txt
cat bar.txt # hi

If you forget the order of the arguments (you will), makelink --help is small and to-the-point:

USAGE:
    makelink.exe <source> <dest>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <source>    This is where the link will point to
    <dest>      This is where the link will be created

License

makelink is available under the MIT license. See LICENSE.txt for details.

Commit count: 5

cargo fmt