servicenow-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ # AGENTS.md
2
+
3
+ ## Project overview
4
+
5
+ Rust CLI for ServiceNow. Package name: `servicenow-cli`; binary name: `servicenow`.
6
+
7
+ ## Architecture
8
+
9
+ - `src/main.rs`: clap command tree and dispatch
10
+ - `src/config.rs`: profiles, environment variables, credential resolution
11
+ - `src/api/client.rs`: ServiceNow Table API client
12
+ - `src/commands/mod.rs`: input parsing and text rendering
13
+ - `src/output.rs`: auto-JSON, structured errors, exit codes
14
+
15
+ ## Working agreements
16
+
17
+ - Keep generic Table API operations usable for custom tables.
18
+ - Add focused resource commands only when they improve on generic table access.
19
+ - Secrets must never be accepted as CLI flags or printed unmasked.
20
+ - Write operations must call `Config::require_writable()`.
21
+ - Keep stdout machine-readable when piped; send informational messages to stderr.
22
+
23
+ ## Checks
24
+
25
+ Run `make check` before committing.
26
+