2026-05-13 14:56:28 +00:00
|
|
|
[package]
|
|
|
|
|
name = "fj"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
expand: repo auto-detect, --web, editor, PR diff/checks/ready/review/status, repo lifecycle, api headers/paginate
* CI: pre-push hook (fmt, clippy -D warnings, test, release build) plus
opt-in FJ_E2E=1 smoke. Install via scripts/install-hooks.sh.
* Repo auto-detection from git remote: -R/--repo becomes optional on all
repo-scoped subcommands. Detection prefers `upstream` then `origin`,
honors --host, and parses https/ssh/scp-style URLs.
* `--web` flag wired to every list/view command (open in default browser).
* `$EDITOR` integration for issue/pr create + comment + edit (omit
`--body` to launch your editor; `-` keeps stdin).
* PR: new `diff`, `commits`, `files`, `checks`, `ready`, `review`,
`edit`, `status`, `reopen` subcommands. `view --comments` now shows
reviews too.
* Issue: `edit` and `develop` (creates a branch for the issue).
* Repo: `fork`, `sync`, `edit`, `rename`, `archive`, `unarchive`,
`delete` (with slug-confirmation), `branches`, `topics`.
* `fj api` gains `-H` headers, `--paginate` (follows Link rel=next),
`--include` (response headers), `--silent`. The jq-ish projector now
supports `[N]`/`[-N]` brackets and `|` pipes.
* MSRV bumped to 1.82 (uses `is_none_or`).
* 46 unit tests covering pure logic: hosts CRUD, remote URL parsing,
link header parser, jq projection, branch label fallback, slugify.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 15:22:40 +00:00
|
|
|
rust-version = "1.82"
|
2026-05-13 14:56:28 +00:00
|
|
|
description = "Command-line tool for Forgejo, in the spirit of gh"
|
|
|
|
|
authors = ["Stephen Way <stephen@rasterstate.com>"]
|
|
|
|
|
license = "MIT"
|
|
|
|
|
repository = "https://rasterhub.com/rasterstate/fj"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "fj"
|
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
anyhow = "1"
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
clap = { version = "4.5", features = ["derive", "env", "wrap_help"] }
|
|
|
|
|
clap_complete = "4.5"
|
|
|
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "process", "io-util", "io-std", "signal"] }
|
batch: release, label, workflow, search, browse, status, org, keys, alias, config, extension, gist
* New top-level groups, each with full CRUD where the API supports it:
- release: list/view/create/edit/delete/upload/download
- label: list/create/edit/delete
- run: workflow runs (list/view/rerun/cancel)
- secret + variable: Actions secrets/vars (list/set/delete)
- search: cross-cutting (repos/issues/prs/users)
- browse: open repo/path on the web
- status: notifications inbox + mark-all-read
- org: list/view/teams
- ssh-key, gpg-key: list/add/delete on your account
- alias: user-defined shortcuts (e.g. `fj alias set co "pr checkout"`)
- config: local prefs (editor, pager, browser, etc.)
- extension: discover and run `fj-<name>` plugin binaries on PATH
- gist: thin wrapper over `gist-*` repos
* main.rs now expands aliases before clap and dispatches to plugins for
unknown subcommands (matching gh).
* New API modules: release, label, notification, search, org, workflow,
with the corresponding strongly-typed wrappers.
* Release asset upload uses reqwest multipart (feature flag added).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 15:29:31 +00:00
|
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream", "gzip", "brotli", "multipart"] }
|
2026-05-13 14:56:28 +00:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
toml = "0.8"
|
|
|
|
|
directories = "5"
|
|
|
|
|
keyring = { version = "3", features = ["apple-native", "linux-native", "windows-native"] }
|
|
|
|
|
url = "2"
|
|
|
|
|
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
|
|
|
|
|
tabled = { version = "0.16", features = ["ansi"] }
|
|
|
|
|
owo-colors = { version = "4", features = ["supports-colors"] }
|
|
|
|
|
supports-color = "3"
|
|
|
|
|
indicatif = "0.17"
|
|
|
|
|
dialoguer = { version = "0.11", default-features = false, features = ["password"] }
|
|
|
|
|
is-terminal = "0.4"
|
|
|
|
|
textwrap = "0.16"
|
|
|
|
|
futures-util = "0.3"
|
|
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
lto = "thin"
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
strip = "symbols"
|
|
|
|
|
opt-level = 3
|
|
|
|
|
|
|
|
|
|
[profile.dist]
|
|
|
|
|
inherits = "release"
|
|
|
|
|
lto = "fat"
|