staempfli / symlinker-pro
Tool to create relative symlinks
Installs: 52 437
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 8
Open Issues: 1
Type:staempfli-tool
Requires
- padraic/phar-updater: 1.0.*
- symfony/console: ~4.1|~3.0|~2.1
Requires (Dev)
- kherge/box: ~2.5
This package is auto-updated.
Last update: 2021-04-07 21:29:45 UTC
README
Relative symlinks creator
Small tool that creates relative symlinks from given paths. A file containing a bunch of paths can also be given to create multiple symlinks in a single run.
Features
- Relative reference from destination to source is automatically calculated from given paths
relative
andabsolute
paths combination supported- Create bunch of symlinks from file content
- Recursive symlinks using
/*
and/**
Demo
Installation
Option1: Using Composer
composer require "staempfli/symlinker-pro":"~1.0"
Option2: Downloading .phar
wget https://github.com/staempfli/symlinker-pro/releases/download/<version>/symlinker-pro.phar
chmod +x ./symlinker-pro.phar
sudo mv ./symlinker-pro.phar /usr/local/bin/symlinker-pro
Usage
2 possibilities:
-
Single symlink:
symlinker-pro create:link <source_path> <destination_path>
-
Multiple symlinks from file:
symlinker-pro create:from:file <file_path>
File paths content format
A symlink definition per line with =>
symbol to separate source_path
and destination_path
:
source_path=>destination_path
source_path2=>destination_path2
source_path3=>destination_path3
If your destination paths should be calculated from a different path than the current root, you can use --dest-prefix-path
option when running create:from:file
Requirements
- PHP >= 5.5
Developers
Licence
GNU General Public License, version 3 (GPLv3)
Copyright
(c) 2016 Staempfli AG