Zig bindings for all 506 operations of the Forgejo API, generated from its own description, and zfj, a command line built on them.
v0.9.0 4fcce90e Jeffrey C. Ollie

zfj 0.9.0

Packages: zfj package upload puts a file in an owner's generic package registry and prints the URL it downloads from. --as names the file, -o the owner, --link lists the package with a repository, and --json gives its size and SHA-256. A file already in the version is refused unless --force replaces it. --source-url downloads the file first, so mirroring a release from elsewhere is one command, without the instance's token going to the source.

v0.8.0 c121617e Jeffrey C. Ollie

zfj 0.8.0

Shell completion for fish, bash, zsh and PowerShell, answered by zfj itself: every command, option and option value, zfj op's operations and their params, and the instances, the clone's workflow files, files and directories, with nothing fetched from the instance. zfj completion <shell> prints each script; the Nix package installs those for fish, bash and zsh, the archives carry all four, and the MSI installs zfj.ps1. Repositories, first tagged in 0.7.0 but never published: repo view, list, clone, create, fork, edit and delete, and zfj login --protocol.

v0.7.0 fb517d2f Jeffrey C. Ollie

zfj 0.7.0

Repositories: repo view, repo list, repo clone, repo create, repo fork, repo edit and repo delete. The repository is named as the argument -- <owner>/<repo>, a bare <repo> for one of your own, or the clone's remote -- except that edit never takes a bare name and delete takes only <owner>/<repo>, asking for it to be typed back on a terminal and needing --yes anywhere else. A fork's clone gets its parent as the upstream remote, and zfj login --protocol ssh makes ssh an instance's default for cloning.

v0.6.0 f5a1fe64 Jeffrey C. Ollie

zfj 0.6.0

Forgejo Actions runs: run list, run view (with --log and --log-failed for a run's job logs), run watch, run cancel and run delete, and workflow run to start one. A run is named by its run number, and --exit-status on view and watch exits 5 for a run that did not succeed. Output piped to a reader that stops early, such as head, now ends quietly.

v0.5.0 cf1d198d Jeffrey C. Ollie

zfj 0.5.0

Pull request commands: pr create, pr view, pr list and pr diff. Label commands: label list and label create. issue close and the new issue reopen take a comment, and issue view --web opens an issue in the browser, through the desktop portal on Linux and the shell on Windows.

v0.4.0 299aac18 Jeffrey C. Ollie

zfj 0.4.0

An MSI installer for Windows: zfj.exe for all users in Program Files\zfj, on the system PATH, published with each release beside the archives and in SHA256SUMS.

v0.3.0 f5a87ba3 Jeffrey C. Ollie

zfj 0.3.0

v0.2.0 9fc50fc3 Jeffrey C. Ollie

zfj 0.2.0 (Zig 0.17)

The Forgejo API bindings, for Zig 0.17, now with each response's headers, array params typed by their items, uploads sent as multipart/form-data, the specification's descriptions as doc comments, and `operation_info` describing every operation at run time. And `zfj`, a command-line tool built on them: `zfj op` for every one of the 506 operations, with --paginate and --strict; `zfj login` and named instances; and `zfj issue` for creating, viewing, listing, commenting on, editing, closing and blocking issues, finding the repository from the clone's git remote.

v0.1.0 cb8f9b5e Jeffrey C. Ollie

zfj 0.1.0 (Zig 0.16)