The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

u-symlink - Create symlink, with undo/redo capability

VERSION

version 0.57

SYNOPSIS

 # create a symlink
 $ u-symlink --symlink /tmp/l1 --target target1

 # this will replace symlink's target
 $ u-symlink --symlink /tmp/l1 --target target2

 # list history
 $ u-symlink --history

 # undo last action, now symlink points back to 'target1'
 $ u-symlink --undo

 # undo again, now symlink '/tmp/l1' is removed
 $ u-symlink --undo

 # redo, now symlink '/tmp/l1' is recreated and points to 'target1'
 $ u-symlink --redo

 # redo, now symlink '/tmp/l1' points to 'target2'
 $ u-symlink --redo

 # forget history
 $ u-symlink --clear-history

 # display help for more options
 $ u-symlink --help

DESCRIPTION

This script is just a command-line interface to Setup::File::Symlink to demonstrate undo capability via command-line.

SEE ALSO

Perinci::CmdLine

Setup::File::Symlink

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

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.