App-reposdb

 view release on metacpan or  search on metacpan

script/reposdb-inline  view on Meta::CPAN

    if ($reftype eq "ARRAY") { $process_array->($_) }
    elsif ($reftype eq "HASH") { $process_hash->($_) }
    elsif ($ref) { $_ = $ref; $ref = "" }
}
$data
}
;; $cleanser->(shift) }
1;

# END Local::_pci_clean_json

### begin code_after_end
### end code_after_end

__END__

=pod

=encoding UTF-8

=head1 NAME

reposdb-inline

=head1 VERSION

This document describes version 0.007 of main (from Perl distribution App-reposdb), released on 2020-10-10.

=head1 SYNOPSIS

Usage:

 % reposdb-inline ls [--config-path=path+] [--config-profile=profile]
     [--detail] [--format=name] [--has-tag=s+] [--has-tags-json=s] [--json]
     [-l] [--lacks-tag=s+] [--lacks-tags-json=s] [--(no)naked-res]
     [--no-config] [--no-detail] [--no-env] [--nodetail]
     [--page-result[=program]] [--reposdb-path=s] [--sort=s+]
     [--sorts-json=s] [--view-result[=program]]
 % reposdb-inline remove-all-tags [--config-path=path+]
     [--config-profile=profile] [--format=name] [--json] [--(no)naked-res]
     [--no-config] [--no-env] [--page-result[=program]] [--reposdb-path=s]
     [--view-result[=program]] [repo]
 % reposdb-inline remove-tag [--config-path=path+]
     [--config-profile=profile] [--format=name] [--json] [--(no)naked-res]
     [--no-config] [--no-env] [--page-result[=program]] [--reposdb-path=s]
     [--view-result[=program]] [repo] <tags> ...
 % reposdb-inline touch [--commit-time] [--config-path=path+]
     [--config-profile=profile] [--format=name] [--json] [--(no)naked-res]
     [--no-config] [--no-env] [--page-result[=program]] [--pull-time]
     [--reposdb-path=s] [--status-time] [--to=s] [--view-result[=program]]
     [repo]

=head1 DESCRIPTION

C<repos.db> is a SQLite database that lists repository names along with some
extra data. They have various uses, but my first use-case for this is to store
last commit/status/pull time (updated via a post-commit git hook or C<gitwrap>).
This is useful to speed up like syncing of repositories in C<Git::Bunch> that
wants to find out which of the hundreds/thousand+ git repositories are "the most
recently used" to prioritize these repositories first. Using information from
C<repos.db> is faster than having to C<git status> or even stat() each repository.

=head1 SUBCOMMANDS

=head2 B<ls>

List repositories registered in repos.db.

=head2 B<remove-all-tags>

Remove all tags from a repo (by default the current repo).

=head2 B<remove-tag>

Remove tag from a repo (by default the current repo).

=head2 B<touch>

Touch the timestamp(s) of a repo (by default current repo).

=head1 OPTIONS

C<*> marks required options.

=head2 Common options

=over

=item B<--config-path>=I<s>

Set path to configuration file.

Can be specified multiple times.

=item B<--config-profile>=I<s>

Set configuration profile to use.

=item B<--format>=I<s>

Choose output format, e.g. json, text.

Default value:

 undef

=item B<--help>, B<-h>, B<-?>

Display help message and exit.

=item B<--json>

Set output format to json.

=item B<--naked-res>

When outputing as JSON, strip result envelope.

Default value:

 0



( run in 0.853 second using v1.01-cache-2.11-cpan-39bf76dae61 )