cli: add FaultError to default imports

It's not uncommon to need to catch FaultError in the CLI. Josef Bacik
complained that he often forgets to import it when he needs it, so let's
do it by default.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2024-02-22 13:30:32 -08:00
parent 145ac798cb
commit 241afd5b62

View File

@ -345,6 +345,7 @@ def run_interactive(
"__doc__": None,
}
drgn_globals = [
"FaultError",
"NULL",
"Object",
"cast",