pagure-cli: A Pagure gitforge query tool

[ gpl, program, utility ] [ Propose Tags ] [ Report a vulnerability ]

A command-line Pagure (gitforge) client for querying and listing projects, users, groups, and issues.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.2.1, 0.2.2
Change log CHANGELOG.md
Dependencies aeson, aeson-pretty, base (<5), bytestring, filepath, http-query, optparse-applicative, pagure (>=0.2), semigroups, simple-cmd, simple-cmd-args (>=0.1.6), text, unordered-containers, yaml [details]
Tested with ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.4, ghc ==9.0.2, ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6.5, ghc ==9.8.2
License GPL-2.0-only
Copyright 2019-2020,2022,2024 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 2024-05-06T13:46:43Z
Distributions Fedora:0.2.1, LTSHaskell:0.2.2, NixOS:0.2.1, Stackage:0.2.2
Executables pagure
Downloads 1027 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2024-05-06 [all 1 reports]

Readme for pagure-cli-0.2.2

[back to package description]

pagure-cli

Hackage GPL-2 license Stackage Lts Stackage Nightly

A pagure gitforge client for querying and listing projects (repos), users, groups, and issues.

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 rac\*

rpms/raceintospace
rpms/racket

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 --server pagure.io --count mattdm

120

List groups:

$ pagure groups
:

List group packages

$ pagure group budgie-sig

rpms/libxfce4windowing
rpms/sassc
rpms/wlrctl

$ pagure group -c rust-sig

3093

Help

$ pagure --version

0.2.2

$ pagure --help

Pagure client

Usage: pagure [--version] COMMAND

  Simple pagure CLI

Available options:
  -h,--help                Show this help text
  --version                Show version

Available commands:
  list                     list projects
  user                     list user repos
  group                    list group repos
  project                  show project details
  branches                 list project branches
  git-url                  show project repo's git urls
  issues                   list project issues
  issue                    show project issue
  users                    list users
  username                 fullname of user
  userinfo                 show user details
  groups                   list groups
  groupinfo                show group details

Use --help to get help on individual commands:

Installation

pagure-cli is packaged in Fedora and EPEL 9: https://src.fedoraproject.org/rpms/pagure-cli

Build from source

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

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

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

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 at https://github.com/juhp/pagure-cli.

Also part of this client uses the simple pagure-hs bindings.

Other pagure clients

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

There is a library client in Rust https://pagure.io/ironthree/pagure-rs by decathorpe.