App-gqmt
view release on metacpan or search on metacpan
__END__
=head1 NAME
gqmt - Graphql Query Mutation Tool
=head1 SYNOPSIS
gqmt [-h] <-u USER -R REPO -T TOKEN -P PACKAGE -t query.tt> REST OF OPTIONS
=head1 DESCRIPTION
script to clean up old package versions from GitHub repository
=head1 OPTIONS
=over 4
=item B<-n | --dry-run>
dry run
=item B<-a | --age> I<INTEGER>
age of version in seconds, to keep. default is 2 weeks
=item B<-u | --user> I<STRING>
user name of repository owner
=item B<-R | --repository> I<STRING>
name of the repository to manipulate images of
=item B<-t | --query-template> I<STRING>
path to query template (see B<TEMPLATES> bellow). Template is injected with these variables:
=over
repo : repository name
user : user name
pkg_num : first num element of packages list
pkg_name : package name
vers_num : first num elements from the version files
cursor : pagination object
=back
=item B<-T | --token> I<STRING>
personal access token to access the GitHub API
=item B<-U | --url> I<STRING>
GraphQL API endpoint, default is I<https://api.github.com/graphql>
=item B<-P | --package> I<STRING>
package name to manage versions of
supported packages are:
=item B<--package-regex> I<STRING>
regex to exclude package version name from been processed
=over
api
app
scheduler
=back
=item B<-N | --rows-number> I<INTEGER>
number of rows for reply pagination, max 100 (default 100)
=item B<-C | --colored>
to use terminal colors in output
=item B<-D | --delete>
if set, then all versions selected are to be deleted, if option I<-v>
is set, then the only one single version is to be deleted (the one, set
with I<-v>)
=item B<-s | --single-run>
process only first page of rows
=item B<-v | --package-version>
package version to manipulate with
=item B<--versions-to-hold>
minimum number of versions to hold (default: 2)
=item B<-V | --version>
version information
=item B<-d | --debug>
be verbose
=item B<-h | --help>
help message
=back
( run in 0.580 second using v1.01-cache-2.11-cpan-97f6503c9c8 )