|
NAME"Commandable::Finder::Packages" - find commands stored per packageSYNOPSISuse Commandable::Finder::Packages; my $finder = Commandable::Finder::Packages->new( base => "MyApp::Command", ); my $help_command = $finder->find_command( "help" ); foreach my $command ( $finder->find_commands ) { ... } DESCRIPTIONThis implementation of Commandable::Finder looks for implementations of commands, where each command is implemented by a different package somewhere in the symbol table.This class uses Module::Pluggable to load packages from the filesystem. As commands are located per package (and not per file), the application can provide special-purpose internal commands by implementing more packages in the given namespace, regardless of which files they come from. CONSTRUCTORnew$finder = Commandable::Finder::Packages->new( %args ) Constructs a new instance of "Commandable::Finder::Packages". Takes the following named arguments:
If either name or description method are missing from a package, that package is silently ignored. AUTHORPaul Evans <leonerd@leonerd.org.uk>
Visit the GSP FreeBSD Man Page Interface. |