mirror of
https://github.com/morluto/rea.git
synced 2026-11-07 05:56:19 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c36275dc8 | ||
|
|
ac30fbd658 | ||
|
|
7d5c6a72f7 | ||
|
|
366ef1534c | ||
|
|
b24a9d89eb |
No files matched your search
@@ -290,7 +290,7 @@ const registerXrefsCommand = (
|
||||
runDirectAnalysis: DirectAnalysis["runDirectAnalysis"],
|
||||
): void => {
|
||||
cli.command(CLI_COMMANDS.xrefs, {
|
||||
description: `List bounded references to an analyzed address. ${namedAddressGuidance} ${equalSelectorGuidance}`,
|
||||
description: `List bounded, untyped references to an analyzed address. For typed incoming references, use inspect-native-instruction at the target address where supported. ${namedAddressGuidance} ${equalSelectorGuidance}`,
|
||||
args: z.object({
|
||||
path: localPathStringSchema.describe("App or program path"),
|
||||
address: z
|
||||
|
||||
@@ -312,7 +312,7 @@ export const registerCoreNativeCommands = (
|
||||
cli.command(command, {
|
||||
description:
|
||||
operation === "inspect_native_instruction"
|
||||
? "Inspect one native instruction with decoded operand facts"
|
||||
? "Inspect an exact code or data address for decoded instructions and typed incoming references where supported"
|
||||
: "Resolve one static native call site",
|
||||
args: z.object({
|
||||
path: localPathStringSchema.describe(
|
||||
|
||||
@@ -55,10 +55,7 @@ const singleDefaultOptions: readonly {
|
||||
{ command: "inspect-signal-decoders", options: ["--offset"] },
|
||||
];
|
||||
|
||||
const optionLine = (
|
||||
help: string,
|
||||
option: string,
|
||||
): string | undefined => {
|
||||
const optionLine = (help: string, option: string): string | undefined => {
|
||||
const line = help
|
||||
.split(/\r?\n/u)
|
||||
.find((candidate) => candidate.trimStart().startsWith(`${option} `));
|
||||
@@ -80,7 +77,9 @@ describe("CLI help default annotations", () => {
|
||||
}
|
||||
const statements = line.match(/default/giu)?.length ?? 0;
|
||||
if (statements !== 1)
|
||||
repeated.push(`${command} ${option}: ${statements} default statements`);
|
||||
repeated.push(
|
||||
`${command} ${option}: ${statements} default statements`,
|
||||
);
|
||||
}
|
||||
}
|
||||
expect(repeated).toEqual([]);
|
||||
|
||||
Reference in new issue
Block a user