fix(cli): correct output messages for state load and path-based actions (#109)

* Add files via upload

fix(cli): correct output messages for state load and path-based actions

* Add files via upload

* Update output.rs

* fix crlf

---------

Co-authored-by: Chris Tate <chris@ctate.dev>
This commit is contained in:
TimWhite
2026-01-22 10:43:27 -06:00
committed by GitHub
co-authored by Chris Tate
parent f74924cd0c
commit ea17db8564
2 changed files with 41 additions and 9 deletions
+6 -2
View File
@@ -408,10 +408,14 @@ fn main() {
}
}
match send_command(cmd, &flags.session) {
match send_command(cmd.clone(), &flags.session) {
Ok(resp) => {
let success = resp.success;
print_response(&resp, flags.json);
// Extract action for context-specific output handling
let action = cmd
.get("action")
.and_then(|v| v.as_str());
print_response(&resp, flags.json, action);
if !success {
exit(1);
}