App-PFT

 view release on metacpan or  search on metacpan

bin/pft-ls  view on Meta::CPAN

    pft ls tags

Will list all the tags from all pages and entries.

=head1 CLASSES

Many classes are supported. Here follows a list with a short description.
For better details see L<pft(1)>.

=over

=item pages

List all regular pages in C<ROOT/content/pages>.

This class supports the B<--pretty> argument.

=item blog

List all blog pages in C<ROOT/content/blog>. This includes daily entries
and monthly entries

This class supports the B<--pretty> argument.

=item tags

Scan through all entries and list all used tags.

=item tagpages

List all tag pages, that is pages describing tags.

This class supports the B<--pretty> argument.

=back

=head1 OPTIONS

=over

=item B<--help> | B<-h>

Show this help.

=item B<--locate>

Show paths and titles, namely quick alias for:

    --pretty='%t:%p'

=item B<--pretty>=I<fmt>

Print properties of the listed nodes according to the specified format. The
format supports a custom percent notation similar in spirit to L<printf(2)>.

Note that some of placeholders will be expanded with empty strings when the
corresponding object property is void. For example, pages don't have a
date). If this is the case the placeholder gets expanded with an empty
string.

The output is encoding depending on the locale.

=over

=item %t

Title

=item %p

Path (might be void if the node is virtual)

=item %g

Comma separated list of tags (possibly void)

=item %a

Author (possibly void)

=item %s

Slug (or name, if the node is virtual)

=item %D

Date in yyyy-mm-dd format (possibly void)

=item %y

Year (possibly void)

=item %m

Month (possibly void)

=item %d

Day (possibly void)

=item %o

Comma separated value of option=value pairs (possibly void)

=back

=back

=head1 SEE ALSO

L<pft(1)>

=cut

use strict;
use warnings;

use feature qw/say state/;

use Encode::Locale qw/$ENCODING_LOCALE/;
use App::PFT;



( run in 0.812 second using v1.01-cache-2.11-cpan-ceb78f64989 )