Files
Npm-cli/Cargo.toml
brasse b1154aea9d
Some checks failed
release / build-release (push) Failing after 4m23s
Initial npmctl: NPM CLI + generic API client
Rust CLI for Nginx Proxy Manager via its API, with sudo-like token auth
(login prompts for password, caches only a short-lived token, never the
password) and a generic `api` command to talk to any HTTP API.

Commands: login/logout/status, list-hosts/get-host/find, add-proxy,
enable/disable/delete-host, list-certs/add-cert/renew-cert, dump (JSON
backup), apply (declarative), and generic api (method/url/header/data/
auth-key/insecure).

Includes clap help + help-on-bad-input, Gitea Actions release workflow
(arm64 native + x64 cross), VS Code build task (-> ./build), README and
MIT license.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011YPrEZVBpPVoCRyJz2exkZ
2026-07-04 13:06:35 +02:00

30 lines
761 B
TOML

[package]
name = "npmctl"
version = "0.1.0"
edition = "2021"
description = "CLI för Nginx Proxy Manager (NPM) med en generisk API-klient för framtidssäkring"
authors = ["brasse"]
license = "MIT"
repository = "https://gitea.brasse-pc.eu/brasse/Npm-cli"
[[bin]]
name = "npmctl"
path = "src/main.rs"
[dependencies]
clap = { version = "4.5", features = ["derive", "env"] }
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rpassword = "7"
dirs = "5"
anyhow = "1"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"