https://github.com/psuong/flinker
https://github.com/psuong/flinker
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/psuong/flinker
- Owner: psuong
- Created: 2024-04-03T04:15:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T05:12:29.000Z (over 1 year ago)
- Last Synced: 2025-03-06T05:54:59.782Z (7 months ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FLinker
FLinker or File Linker is a small executable that lets you
* define a .yml file
* that points from the original file / directory to a target file / directory
* specify the kind of linkage between files / directories
* symlink
* hardlink
* symlink-dir## Example
Below is example of the yaml file.
```yml
# You can define either a hardlink or symlink between 2 files
hardlink:
# The following can be a relative or absolute path
- src: a.txt
- dst: b.txt
---
symlink:
- src: a.txt
- dst: c.txt
symlink-dir:
- src: $HOME/a
- dst: $HOME/b
```## Build
```bash
cargo build --release
```
* Clone the repo and build it.
* Add flinker to your path## Usage
```bash
flinker.exe example.yml
```