]>
iEval git - app-zealc.git/blob - lib/App/Zealc/Command/list.pm
1 package App
::Zealc
::Command
::list
;
7 our $VERSION = '0.000_001';
9 use App
::Zealc
'-command';
10 use Term
::FormatColumns qw
/format_columns/;
13 (['long|l', 'Display more information about each docset'])
17 my ($self, $opts, $args) = @_;
21 for my $set (sort {$a->name cmp $b->name} $self->app->zeal->sets) {
22 push @args, [$set->name, $set->family];
23 $maxlen = length $set->name if length $set->name > $maxlen
25 printf "%-${maxlen}s %s:\n", @
$_ for @args;
27 my @sets = sort map {$_->name} $self->app->zeal->sets;
28 print format_columns
@sets;
39 App::Zealc::Command::list - list the installed docsets
44 # Ansible Bootstrap 3 Perl Sass
48 # Bootstrap 3 bootstrap:
54 The list command displays the installed docsets. With the -l argument
55 it also displays their keywords.
63 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
65 =head1 COPYRIGHT AND LICENSE
67 Copyright (C) 2015 by Marius Gavrilescu
69 This library is free software; you can redistribute it and/or modify
70 it under the same terms as Perl itself, either Perl version 5.20.1 or,
71 at your option, any later version of Perl 5 you may have available.
This page took 0.053642 seconds and 5 git commands to generate.