staempfli/symlinker-pro

此包已被弃用且不再维护。未建议替代包。

创建相对符号链接的工具

安装次数: 52,240

依赖者: 1

建议者: 0

安全: 0

星星: 7

关注者: 3

分支: 8

开放问题: 1

类型:staempfli-tool

1.2.0 2019-04-11 13:07 UTC

This package is auto-updated.

Last update: 2021-04-07 21:29:45 UTC


README

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.

相对符号链接创建器

一个小工具,可以将给定的路径创建为相对符号链接。也可以将包含多个路径的文件内容提供出来,以在单次运行中创建多个符号链接。

特性

  • 相对引用 从目标到源自动从给定的路径计算得出
  • 支持 relativeabsolute 路径组合
  • 从文件内容创建多个符号链接
  • 使用 /*/** 进行递归符号链接

演示

symlinker-pro demo playlist

安装

选项1:使用Composer

composer require "staempfli/symlinker-pro":"~1.0"

选项2:下载 .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

用法

两种可能性

  • 单个符号链接

     symlinker-pro create:link <source_path> <destination_path>
    
  • 从文件创建多个符号链接

     symlinker-pro create:from:file <file_path>
    

文件路径内容格式

每行一个符号链接定义,使用 => 符号来分隔 source_pathdestination_path

source_path=>destination_path
source_path2=>destination_path2
source_path3=>destination_path3

如果目标路径应从与当前根不同的路径计算,可以在运行 create:from:file 时使用 --dest-prefix-path 选项

要求

  • PHP >= 5.5

开发者

许可证

GNU通用公共许可证,版本3(GPLv3)

版权

(c) 2016 Staempfli AG