symlink-u - Create symlink, with undo/redo capability
version 0.64
# create a symlink $ symlink-u --symlink /tmp/l1 --target target1 # this will replace symlink's target $ symlink-u --symlink /tmp/l1 --target target2 # list history $ symlink-u --history # undo last action, now symlink points back to 'target1' $ symlink-u --undo # undo again, now symlink '/tmp/l1' is removed $ symlink-u --undo # redo, now symlink '/tmp/l1' is recreated and points to 'target1' $ symlink-u --redo # redo, now symlink '/tmp/l1' points to 'target2' $ symlink-u --redo # forget history $ symlink-u --clear-history # display help for more options $ symlink-u --help
This script is just a command-line interface to Setup::File::Symlink to demonstrate undo capability via command-line.
Perinci::CmdLine
Setup::File::Symlink
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2012 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perinci::CmdLine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::CmdLine
CPAN shell
perl -MCPAN -e shell install Perinci::CmdLine
For more information on module installation, please visit the detailed CPAN module installation guide.