8 with 'MooseX::SimpleConfig';
11 has lib => (is => 'rw', isa => 'ArrayRef', predicate => 'has_lib');
12 has append => (is => 'rw', isa => 'Bool', required => 1, default => sub { 0 });
13 has authors => (is => 'rw', isa => 'HashRef', predicate => 'has_authors');
14 has '+configfile' => ( default => '~/.moosedoc' ) if -e '~/.moosedoc';
16 has _autodoc => (is => 'ro', isa => 'MooseX::AutoDoc', lazy_build => 1);
22 $self->has_authors ? (authors => $self->authors) : ()
27 my ($self, $package) = @_;
29 $self->_autodoc->generate_pod_for( $package );
36 my $app = MooseDoc->new_with_options();
37 push(@INC, @{ $app->lib }) if $app->has_lib;
38 push(@INC, './lib') if ! $app->has_lib && -e './lib' && -d './lib';
41 # local $, = "\n"; print @INC;
43 my @packages = @{ $app->extra_argv };
44 for my $package (@packages){
46 my $docs = $app->get_docs_for( $package );
47 #print or append logic goes here.