fj/Cargo.toml
Stephen Way 35d88bb370
expand: auth token/refresh/setup-git, protect, hook, --debug, man pages
* `fj auth token` prints the stored token for scripting.
* `fj auth refresh` re-verifies (or replaces) the stored token.
* `fj auth setup-git` installs a git credential helper that delegates
  password lookup to `fj auth token`.
* New top-level `fj protect` group: list / view / set / delete branch
  protection rules.
* New top-level `fj hook` group: webhook CRUD + test delivery.
* Global `--debug` (`FJ_DEBUG`) flag dumps every HTTP request fj makes
  to stderr (method, URL, query, body preview, status).
* `fj man -o ./man` generates `clap_mangen` pages for fj and every
  subcommand. Useful for downstream packaging.
* Fixed: several subcommand groups (hook, label, search, key, workflow
  secrets/variables) were showing the flattened RepoFlag's doc string
  in their --help summary line. Added explicit doc comments per variant.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 08:34:01 -07:00

49 lines
1.4 KiB
TOML

[package]
name = "fj"
version = "0.1.0"
edition = "2021"
rust-version = "1.82"
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"
clap_mangen = "0.2"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "process", "io-util", "io-std", "signal"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream", "gzip", "brotli", "multipart"] }
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"