NAME
gqmt - Graphql Query Mutation Tool
SYNOPSIS
gqmt [-h] <-u USER -R REPO -T TOKEN -P PACKAGE> REST OF OPTIONS
DESCRIPTION
script to clean up old package versions from GitHub repository
currently it (packages list) is fixed, hardcoded list of packages (may be in future it becomes configurable)
OPTIONS
- -a | --age INTEGER
-
in seconds, default is 2 weeks
- -u | --user STRING
-
user name of repository owner
- -R | --repository STRING
-
name of the repository to manipulate images of
- -T | --token STRING
-
personal access token to access the GitHub API
- -U | --url STRING
-
GraphQL API endpoint, default is https://api.github.com/graphql
- -P | --package STRING
-
package name to manage versions of
supported packages are:
api
app
scheduler
- -N | --rows-number INTEGER
-
number of rows for reply pagination, max 100 (default 100)
- -C | --colored
-
to use terminal colors in output
- -D | --delete
-
if set, then all versions selected are to be deleted, if option -v is set, then the only one single version is to be deleted (the one, set with -v)
- -s | --single-run
-
process only first page of rows
- -v | --package-version
-
package version to manipulate with
- -V | --version
-
version information
- -d | --debug
-
be verbose
- -h | --help
-
help message
EXAMPLE
gqmt < -u user-name -R repo-name -P pkg-name -T xxxxxxxxxxxxxxxxxx >
SEE ALSO
https://docs.github.com/en/graphql/guides/forming-calls-with-graphq
AUTHOR
Zeus Panchenko <zeus@gnu.org.ua>
COPYRIGHT
Copyright 2020 Zeus Panchenko.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.