Skip to content

Commit

Permalink
marked ida-interact as obsolete, will be replaced soon
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jul 23, 2021
1 parent c8dca47 commit 7e3bb6f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gef.py
Expand Up @@ -2574,6 +2574,17 @@ def wrapper(*args, **kwargs):
return wrapper


def obsolete_command(f):
"""Decorator to add a warning when a command is obsolete and will be removed."""

@functools.wraps(f)
def wrapper(*args, **kwargs):
warn("This command is obsolete and will be removed in a feature release.")
return f(*args, **kwargs)

return wrapper


def experimental_feature(f):
"""Decorator to add a warning when a feature is experimental."""

Expand Down Expand Up @@ -5306,7 +5317,6 @@ def get_fd_from_result(self, res):
res = int(res.split()[2], 0)
return res


@register_command
class IdaInteractCommand(GenericCommand):
"""IDA Interact: set of commands to interact with IDA via a XML RPC service
Expand Down Expand Up @@ -5363,6 +5373,7 @@ def disconnect(self):
self.sock = None
return

@obsolete_command
def do_invoke(self, argv):
def parsed_arglist(arglist):
args = []
Expand Down

0 comments on commit 7e3bb6f

Please sign in to comment.