MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / exit_code

Method exit_code

crates/agent/src/agent/task_executor/mod.rs:506–511  ·  view source on GitHub ↗

Returns the exit code of the hook if it was a command hook that ran to completion.

(&self)

Source from the content-addressed store, hash-verified

504impl HookResult {
505 /// Returns the exit code of the hook if it was a command hook that ran to completion.
506 pub fn exit_code(&self) -> Option<i32> {
507 match self {
508 HookResult::Command(Ok(CommandResult { exit_code, .. })) => Some(*exit_code),
509 _ => None,
510 }
511 }
512
513 pub fn is_success(&self) -> bool {
514 match self {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected