pagure-cli: Pagure client

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

A commandline Pagure client for querying projects and users.


[Skip to Readme]

Properties

Versions 0.1, 0.2, 0.2, 0.2.1, 0.2.2
Change log CHANGELOG.md
Dependencies aeson, base (<5), bytestring, filepath, http-conduit, lens, lens-aeson, microlens, microlens-aeson, optparse-applicative, semigroups, simple-cmd-args (>=0.1.6), text [details]
License GPL-2.0-only
Copyright 2019 Jens Petersen
Author Jens Petersen <juhpetersen@gmail.com>
Maintainer Jens Petersen <juhpetersen@gmail.com>
Category Utility
Home page https://github.com/juhp/pagure-cli
Bug tracker https://github.com/juhp/pagure-cli/issues
Source repo head: git clone https://github.com/juhp/pagure-cli.git
Uploaded by JensPetersen at 2020-04-06T14:57:56Z

Flags

Automatic Flags
NameDescriptionDefault
microlens

Use smaller microlens instead of lens

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for pagure-cli-0.2

[back to package description]

pagure-cli

Hackage GPL-2 license Stackage Lts Stackage Nightly Build status Copr build

A pagure client for querying projects and users.

Usage

By default it uses the src.fedoraproject.org Pagure server instance (aka Fedora dist-git), but this can be overriden by the --server option.

List/search for repos

$ pagure list emacs\*
emacs
:

Note by default 'orphan' owned packages are excluded.

One can also filter by owner or committer.

List user's projects

Count projects of a user:

$ pagure user -s pagure.io --count mattdm
93

List groups:

$ pagure groups
:

More commands

Help

Use --help to get help on individual commands:

$ pagure list --help
Usage: pagure list [-s|--server SERVER] [-c|--count] [-U|--url] [-j|--json]
                   [(-F|--only-forks) | (-f|--include-forks)]
                   [-n|--namespace NAMESPACE]
                   [(-o|--owner OWNER) | (-u|--username USERNAME)] [PATTERN]
  list projects

Available options:
  -s,--server SERVER       Pagure server
  -c,--count               Show number only
  -U,--url                 Print API url
  -j,--json                Print raw json response
  -F,--only-forks          Only list forks
  -f,--include-forks       Include forks [default: ignore forks]
  -n,--namespace NAMESPACE Specify project repo namespace
  -o,--owner OWNER         Projects with certain owner
  -u,--username USERNAME   Projects to which username can commit
  -h,--help                Show this help text

Installation

To build the latest release you will need cabal-install and ghc, or stack:

stack install pagure-cli or cabal new-install pagure-cli.

Or to build from the git source, run directly without the package name.

Binaries

If you are using Fedora you can install the package from my copr repo.

Contributions

Pagure rest API can be found on pagure servers: eg https://pagure.io/api/0. There are still many unsupported commands and options. Please open a ticket or PR to request adding more.

Other clients

After writing the initial version I discovered that Ricky Elrod (relrod) had made https://github.com/fedora-infra/pagure-cli.