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.
- servicenow_cli-0.1.0/AGENTS.md +26 -0
- servicenow_cli-0.1.0/Cargo.lock +2183 -0
- servicenow_cli-0.1.0/Cargo.toml +30 -0
- servicenow_cli-0.1.0/LICENSE +22 -0
- servicenow_cli-0.1.0/Makefile +26 -0
- servicenow_cli-0.1.0/PKG-INFO +177 -0
- servicenow_cli-0.1.0/README.md +164 -0
- servicenow_cli-0.1.0/dist/servicenow_cli-0.1.0-py3-none-macosx_11_0_arm64.whl +0 -0
- servicenow_cli-0.1.0/pyproject.toml +16 -0
- servicenow_cli-0.1.0/src/api/client.rs +462 -0
- servicenow_cli-0.1.0/src/api/mod.rs +42 -0
- servicenow_cli-0.1.0/src/commands/mod.rs +209 -0
- servicenow_cli-0.1.0/src/config.rs +213 -0
- servicenow_cli-0.1.0/src/lib.rs +4 -0
- servicenow_cli-0.1.0/src/main.rs +703 -0
- servicenow_cli-0.1.0/src/output.rs +90 -0
- servicenow_cli-0.1.0/tests/cli.rs +106 -0
- servicenow_cli-0.1.0/tests/integration.rs +177 -0
|
@@ -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
|
+
|