xref: /llvm-project/lldb/test/API/commands/command/container/welcome.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2import sys
3
4
5class WelcomeCommand(object):
6    def __init__(self, debugger, session_dict):
7        pass
8
9    def get_short_help(self):
10        return "Just a docstring for Welcome\nA command that says hello to LLDB users"
11
12    def __call__(self, debugger, args, exe_ctx, result):
13        print("Hello " + args + ", welcome to LLDB", file=result)
14        return None
15
16
17class WelcomeCommand2(object):
18    def __init__(self, debugger, session_dict):
19        pass
20
21    def get_short_help(self):
22        return "A docstring for the second Welcome\nA command that says hello to LLDB users"
23
24    def __call__(self, debugger, args, exe_ctx, result):
25        print("Hello " + args + ", welcome again to LLDB", file=result)
26        return None
27