Dist::Zilla::App::Command - base class for dzil commands


Dist-Zilla documentation Contained in the Dist-Zilla distribution.

Index


Code Index:

NAME

Top

Dist::Zilla::App::Command - base class for dzil commands

VERSION

Top

version 4.200008

METHODS

Top

zilla

This returns the Dist::Zilla object in use by the command. If none has yet been constructed, one will be by calling Dist::Zilla->from_config.

(This method just delegates to the Dist::Zilla::App object!)

log

This method calls the log method of the application's chrome.

AUTHOR

Top

Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT AND LICENSE

Top


Dist-Zilla documentation Contained in the Dist-Zilla distribution.

use strict;
use warnings;
package Dist::Zilla::App::Command;
BEGIN {
  $Dist::Zilla::App::Command::VERSION = '4.200008';
}
# ABSTRACT: base class for dzil commands
use App::Cmd::Setup -command;
use Moose::Autobox;


sub zilla {
  return $_[0]->app->zilla;
}


sub log {
  $_[0]->app->chrome->logger->log($_[1]);
}

1;

__END__