NAME

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

VERSION

version 0.63

SYNOPSIS

# 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

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.