GitXplorerGitXplorer
k

App-Cmd-Elective

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
131250de451525cbbb4bc3ea41345456688bdf9b

remove needless dep on Moose::Util

kkentfredric committed 12 years ago
Unverified
0bba5693bdfdd7e3956102b460a223bc3a0fcd17

Add README.mkdn

kkentfredric committed 12 years ago
Unverified
bd8e6e4f03ac845c96fa0e31857ded2736c29775

First working proof

kkentfredric committed 12 years ago
Unverified
a1e732d54e1aece755e5861a81647dda8b75e92f

initial commit

kkentfredric committed 12 years ago

README

The README file for this repository.

NAME

App::Cmd::Elective - load only ::Command::* from a whitelist

VERSION

version 0.1.0

SYNOPSIS

If you have an existing App which uses App::Cmd and you want to add whitelist only support, a simple change is required:

diff:

-use App::Cmd::Setup -app
+use App::Cmd::Elective -app

+sub app_commands {
+   qw( foo bar )
+}

The function app_commands returns a list of commandlets to load. ( In additional to any defaults provided by App::Cmd ).

Note: Note these are NOT nessecarily the same as the CLI command names, but these are the "providing module" names, which are expanded based upon the value of plugin_search_path, and then the resulting command name is based on the individual modules values of command_names

Otherwise, except for this minor difference, usage should be identical to that of App::Cmd's standard behaviour

AUTHOR

Kent Fredric kentfredric@gmail.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Kent Fredric kentfredric@gmail.com.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.