Skip to content

Commit

Permalink
Add function to exit CLI with a message
Browse files Browse the repository at this point in the history
  • Loading branch information
plant99 committed Jul 22, 2020
1 parent 583b9bf commit c2b16eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions felicette/utils/sys_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys
from rich import print as rprint
def exit_cli(message):
rprint("%s" % message)
sys.exit(0)

0 comments on commit c2b16eb

Please sign in to comment.