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:
+6
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user