Files
clang-p2996/lldb/test/API/commands/command/container/welcome.py
Jim Ingham c5011aed9c Add a "command container" hierarchy to allow users to add container nodes.
The point is to allow users with a related set of script based commands
to organize their commands in a hierarchy in the command set, rather than
having to have only top-level commands.

Differential Revision: https://reviews.llvm.org/D110298
2021-10-18 15:29:24 -07:00

29 lines
790 B
Python

from __future__ import print_function
import lldb
import sys
class WelcomeCommand(object):
def __init__(self, debugger, session_dict):
pass
def get_short_help(self):
return "Just a docstring for Welcome\nA command that says hello to LLDB users"
def __call__(self, debugger, args, exe_ctx, result):
print('Hello ' + args + ', welcome to LLDB', file=result)
return None
class WelcomeCommand2(object):
def __init__(self, debugger, session_dict):
pass
def get_short_help(self):
return "Just a docstring for the second Welcome\nA command that says hello to LLDB users"
def __call__(self, debugger, args, exe_ctx, result):
print('Hello ' + args + ', welcome again to LLDB', file=result)
return None