feat: integrate ghidra-cli v0.1
This commit is contained in:
commit
ffab80a1f2
52 changed files with 6689 additions and 126 deletions
18
src/error.rs
18
src/error.rs
|
|
@ -37,8 +37,6 @@ pub enum ErrorCode {
|
|||
JavaMissing,
|
||||
/// The installed Java version is incompatible.
|
||||
JavaIncompatible,
|
||||
/// A later integration layer has not connected execution yet.
|
||||
InternalNotImplemented,
|
||||
/// Rust/Java request or response validation failed.
|
||||
ProtocolViolation,
|
||||
/// The child exceeded a native or watchdog timeout.
|
||||
|
|
@ -157,22 +155,6 @@ impl AppError {
|
|||
}
|
||||
}
|
||||
|
||||
/// Clear failure used until the store/process/Java execution layer is attached.
|
||||
#[must_use]
|
||||
pub fn execution_not_implemented(operation: &str) -> Self {
|
||||
let mut error = Self::new(
|
||||
ErrorCode::InternalNotImplemented,
|
||||
format!("operation '{operation}' is not connected to the Ghidra execution layer"),
|
||||
false,
|
||||
);
|
||||
error
|
||||
.envelope
|
||||
.error
|
||||
.details
|
||||
.insert("operation".to_owned(), Value::String(operation.to_owned()));
|
||||
error
|
||||
}
|
||||
|
||||
/// Constructs an invalid-invocation failure from clap context.
|
||||
#[must_use]
|
||||
pub fn invalid_arguments(message: impl Into<String>) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue