NAME
App::Spec::Pod - Generates Pod from App::Spec objects
SYNOPSIS
my $generator = App::Spec::Pod->new(
spec => $appspec,
);
my $pod = $generator->generate;
METHODS
- generate
-
my $pod = $generator->generate;
- markup
-
$pod->markup(text => \$abstract);
Applies markup defined in the spec to the text argument.
- options2pod
-
my $option_string = "Options:\n\n" . $self->options2pod( options => $options, );
- params2pod
-
my $param_string = "Parameters:\n\n" . $self->params2pod( parameters => $parameters, );
- subcommand_pod
-
Generates pod for subcommands recursively
my @pod = $self->subcommand_pod( previous => [@previous_subcmds], commands => $subcmds, );
- swim2pod
-
my $pod = $self->swim2pod($swim);
Converts Swim markup to Pod. See Swim.
- spec
-
Accessor for App::Spec object