Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exit imports #51

Merged
merged 3 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions terrabutler/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from sys import exit
from terrabutler.click import main

if __name__ == "__main__":
sys.exit(main())
exit(main())
1 change: 1 addition & 0 deletions terrabutler/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import click
from colorama import Fore
from sys import exit
from os import path
from terrabutler.__init__ import (
__name__,
Expand Down
1 change: 1 addition & 0 deletions terrabutler/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from terrabutler.utils import paths
from click import confirm
from colorama import Fore
from sys import exit
import boto3
import os
import subprocess
Expand Down
1 change: 1 addition & 0 deletions terrabutler/inception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from terrabutler.utils import paths
from colorama import Fore
from os import path
from sys import exit
import subprocess


Expand Down
3 changes: 3 additions & 0 deletions terrabutler/requirements.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from sys import exit


def check_requirements():
"""
Check requirements before running the application.
Expand Down
1 change: 1 addition & 0 deletions terrabutler/tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import signal
import subprocess
from colorama import Fore
from sys import exit
from terrabutler.settings import get_settings
from terrabutler.utils import paths

Expand Down