lanb

Crates.iolanb
lib.rslanb
version0.1.1
sourcesrc
created_at2023-12-02 18:41:39.680821
updated_at2024-01-20 12:12:55.371876
descriptionCreate symbolic links and hard links.
homepage
repositoryhttps://github.com/p1486/rwutils.git
max_upload_size
id1056329
size24,169
(9yokuro)

documentation

README

lanb - A cli tool to create symbolic links and hard links.

example

Features

  • Automatically convert relative path to absolute path before create links.

Installation

Run the following Cargo command:

cargo install lanb

Or download prebuilt binary from the GitHub release page

Usage

To create symbolic link foo -> bar:

lanb foo bar

If bar is a directory, this will create foo -> bar/the_name_of_foo.

If you specified three files or more, create symbolic link nth -> last/name_of_nth_file:

lanb foo bar baz

If baz is not a directory, return error.

Options

  • -b, --backup - Make backup of each existing destination file
  • -s, --suffix <SUFFIX> - Override the usual backup suffix [defalt: ~]
  • -n, --noninteractive - Do not prompt whether to remove destinations
  • -H, --hardlink - Make hard links instead of symbolic links
  • -q, --quiet - Do not print name of each linked file

License

This project is licensed under the MIT License and the Apache-2.0.

Commit count: 0

cargo fmt