-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added exit msgs * rearrange * Update src/chatdbg/util/exit_message.py Co-authored-by: Nicolas van Kempen <[email protected]> * import * fixed lldb * fix * nick is picky --------- Co-authored-by: Kyla Levin <[email protected]> Co-authored-by: Nicolas van Kempen <[email protected]>
- Loading branch information
1 parent
4bb4897
commit 55a4f26
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Any | ||
|
||
_chatdbg_was_called = False | ||
|
||
|
||
def chatdbg_was_called() -> None: | ||
global _chatdbg_was_called | ||
_chatdbg_was_called = True | ||
|
||
|
||
def print_exit_message(*args: Any, **kwargs: Any) -> None: | ||
global _chatdbg_was_called | ||
if _chatdbg_was_called: | ||
print("Thank you for using ChatDBG!") | ||
print( | ||
"Share your success stories here: github.com/plasma-umass/ChatDBG/issues/53" | ||
) |