NAME

File::DistDir::CLI - command-line interface for installed distribution resources

SYNOPSIS

dist-dir -d Bedrock dir
dist-dir -d Bedrock ls
dist-dir -m BLM::Startup::RedisSession find '*.xml'
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. Alternatively, -m resolves the installed distribution owning a Perl module.

Commands

dir

Print the installed share-directory path.

ls

Print a recursive tree of resources.

find PATTERN

Print matching resource-file paths, one per line. * and ? match filename globs recursively. Paths are relative to the share directory.

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

Distribution name (mutually exclusive with -m).

-m, --module PACKAGE

Resolve a distribution from an installed module and its package ownership metadata. Requires an installed packlist. Mutually exclusive with -d.

-r, --recursive

Permit directory copying with the cp command.

-h, --help

Show command help.

SEE ALSO

File::DistDir, File::ShareDir