Add credits, projects, tasks, vendors, and purchase orders

Five more resources following clients.rs's template exactly, same as
the previous batch. credits.rs is otherwise identical to quotes.rs
since Credit is also a type alias for Invoice in the SDK (same table,
distinguished by entity_type upstream).

Verified against a live local server: full create/list/get/update/
delete round trip for all five.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 16:49:39 -04:00
co-authored by Claude Sonnet 5
parent 1fbd7a7ce5
commit a0a629cbfe
11 changed files with 738 additions and 21 deletions
+12 -2
View File
@@ -45,9 +45,9 @@ pub enum OutputFormat {
Json,
}
/// One variant per resource. Six are wired up so far (`clients` was the
/// One variant per resource. Eleven are wired up so far (`clients` was the
/// template for the rest); see CLAUDE.md's "Adding a resource" for the
/// remaining ~28.
/// remaining ~23.
#[derive(Subcommand)]
pub enum Command {
/// Manage clients
@@ -56,12 +56,22 @@ pub enum Command {
Invoices(ResourceArgs),
/// Manage quotes
Quotes(ResourceArgs),
/// Manage credits
Credits(ResourceArgs),
/// Manage payments
Payments(ResourceArgs),
/// Manage products
Products(ResourceArgs),
/// Manage expenses
Expenses(ResourceArgs),
/// Manage projects
Projects(ResourceArgs),
/// Manage tasks
Tasks(ResourceArgs),
/// Manage vendors
Vendors(ResourceArgs),
/// Manage purchase orders
PurchaseOrders(ResourceArgs),
}
#[derive(Args)]