NAME
File::DistDir::CLI - command-line interface for installed distribution resources
SYNOPSIS
dist-dir -d Bedrock dir
dist-dir -d Bedrock ls
dist-dir -d Bedrock cp config/tagx.xml ./config/
dist-dir -d Bedrock -r cp config config
dist-dir -d Bedrock -r cp .
DESCRIPTION
This module implements dist-dir, a command-line wrapper around the File::DistDir object interface. The distribution name is a CPAN distribution name, not a Perl package name.
Commands
- dir
-
Print the installed share-directory path.
- ls
-
Print a recursive tree of resources.
- cp SOURCE [DESTINATION]
-
Copy a file or, with
-r, a directory's contents into the destination. For-r cp ., the destination defaults to the current directory. Existing files may be overwritten. For detailed semantics and safety restrictions see "copy(SOURCE, DESTINATION, recursive =" in File::DistDir 1)>.
Options
- -d, --distribution NAME
-
Required distribution name.
- -r, --recursive
-
Permit directory copying with the
cpcommand. - -h, --help
-
Show command help.