Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juhp/koji-query
https://github.com/juhp/koji-query
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/juhp/koji-query
- Owner: juhp
- License: bsd-3-clause
- Created: 2021-07-04T07:25:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T02:38:26.000Z (over 3 years ago)
- Last Synced: 2024-10-31T14:06:09.158Z (3 months ago)
- Language: Haskell
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# koji-query
A small cli tool to help locate Koji tasks.
Similar to `koji list-tasks --mine --quiet --all ...`,
but it shows duration kojiweb urls and build.log size,
and it uses `date` to parse a specified date string
and can filter results by package.Later I might merge in other mini-projects like koji-progress and
koji-buildlog-sizes (possibly even koji-install).## Installation
Either: `cabal install --installdir=~/bin`
(on Fedora first run `cabal-rpm builddep` to save a lot of building).
or: `stack install`.
## Usage
By default it shows your Fedora Koji tasks since yesterday.
```
$ koji-query --version
0.1.0
$ koji-query --help
koji-queryUsage: koji-query [--version] [-S|--server URL] [-u|--user USER]
[-l|--limit INT] [(-t|--task TASKID) | (-P|--parent TASKID)]
[-s|--state STATE] [-a|--arch ARCH] [-d|--date DAY]
[-m|--method METHOD] [-p|--package PKG]
Helper client for koji queries: https://github.com/juhp/koji-queryAvailable options:
-h,--help Show this help text
--version Show version
-S,--server URL Koji Hub [default: Fedora]
-u,--user USER Koji user
-l,--limit INT Maximum number of tasks to show [default: 20]
-t,--task TASKID Show task
-P,--parent TASKID List children tasks
-s,--state STATE Filter tasks by state
-a,--arch ARCH Task arch
-d,--date DAY Tasks started after date [default: yesterday]
-m,--method METHOD Select tasks by method: [build,buildarch,etc]
-p,--package PKG Filter results to specified package
```Example:
```
$ koji-query -a aarch64 -d "last week" -s fail
```