NAME
App::Spec::Role::Command - commands and subcommands both use this role
METHODS
- read
-
Calls load_data, build, load_plugins, init_plugins
- build
-
This builds a tree of objects
my $self = App::Spec->build(%$hashref); my $self = App::Spec::Subcommand->build(%$hashref);
- load_data
-
my $spec = App::Spec->load_data($file);
Takes a filename as a string, a filehandle, a ref to a YAML string or a hashref.
- default_plugins
-
Returns ('Meta', 'Help')
- has_subcommands
-
Returns 1 if there are any subcommands defined.
- init_plugins
-
Initialize plugins
- load_plugins
-
Loads the specified plugin modules.
- plugins_by_type
-
my $p = $cmd->plugins_by_type->{Subcommand};