Skip to content

Commit

Permalink
Implement decai -e model=
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 10, 2024
1 parent 39f2339 commit 3db25af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion decai/decai.r2.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ You can write your custom decai commands in your ~/.radare2rc file.
const [k, v] = arg.split("=");
if (!v) {
switch (k) {
case "model":
console.log(decaiModel);
break;
case "debug":
console.log(decaiDebug);
break;
Expand Down Expand Up @@ -122,8 +125,11 @@ You can write your custom decai commands in your ~/.radare2rc file.
decaiApi = v;
}
break;
case "model":
decaiModel = v;
break;
case "cache":
decaiCache = v;
decaiCache = v === "true" || v == 1;
break;
case "ctxfile":
decaiContextFile = v;
Expand Down

0 comments on commit 3db25af

Please sign in to comment.