Skip to content

fjo v0.1.0

Choose a tag to compare

@maymeow maymeow released this 18 Nov 20:15
· 15 commits to main since this release
e7c8465

First release. Supports Forgejo 15 and 17.

Added

  • Authentication: fjo auth login/status/switch/logout/token with tokens in the OS
    credential store (--insecure-storage for hosts without one), FJO_TOKEN, several
    accounts per host, and hosts with custom ports or base paths.
  • Repositories: fjo repo list/view/create/clone/fork/edit/rename/delete/archive/unarchive/sync
    and fjo repo set-default, with repository detection from Git remotes.
  • Issues: fjo issue list/view/create/edit/close/reopen/comment/delete/pin/unpin,
    including filters, issue URLs, body files, editor support, interactive prompts and
    browser shortcuts.
  • Pull requests: fjo pr list/view/diff/checks/create/checkout/merge/review/close/reopen/ready/edit/comment.
    pr review approves, requests changes or comments; pr checks exits 8 while checks
    are pending, and 1 when a check failed or none were reported.
  • fjo api for authenticated REST requests, with {owner}, {repo} and {branch}
    placeholders and --paginate.
  • Structured output: --json, --jq and --template for repository, issue, pull
    request and check output; tables on a terminal and TSV otherwise; pager and editor
    support (FJO_PAGER, FJO_EDITOR).
  • fjo --help, fjo --version, fjo version and shell completion.
  • Global flags --color, --verbose, --debug; tokens never appear in debug output.
  • User configuration file (config.yaml) with validation; location overridable by
    FJO_CONFIG_DIR or XDG_CONFIG_HOME.
  • gh-compatible exit codes, plus fjo codes 10–16 (see docs/compatibility.md).

Install

go install github.com/maymeow/fjo/cmd/fjo@v0.1.0

Prebuilt binaries will follow with v0.2.0.