Like in Julia language, to look something like:
R2pm should have its own REPL mode, which can be entered from the radare2 shell by pressing ]. To get back to the radare2 shell press backspace or ^C.
It will then change the command prompt:
pkg>
Good example how to provide such a command is yara plugin - it installs new command in radare2: https://github.com/radare/radare2-extras/blob/master/yara/yara/core_yara.c
So installing r2pm will install the radare2 plugin, which radare2 will automatically load and will provide this command for using directly from the r2 shell.
Like in Julia language, to look something like: R2pm should have its own REPL mode, which can be entered from the radare2 shell by pressing ]. To get back to the radare2 shell press backspace or ^C. It will then change the command prompt:
Good example how to provide such a command is yara plugin - it installs new command in radare2: https://github.com/radare/radare2-extras/blob/master/yara/yara/core_yara.c So installing r2pm will install the radare2 plugin, which radare2 will automatically load and will provide this command for using directly from the r2 shell.
Migrated from here https://github.com/radare/radare2/issues/14372
/cc @radare @Maijin @xarkes @qbarrand