-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
361 additions
and
82 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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
from .console import main | ||
import sys | ||
from toot.cli import cli | ||
from toot.exceptions import ConsoleError | ||
from toot.output import print_err | ||
from toot.settings import load_settings | ||
|
||
main() | ||
try: | ||
defaults = load_settings().get("commands", {}) | ||
cli(default_map=defaults) | ||
except ConsoleError as ex: | ||
print_err(str(ex)) | ||
sys.exit(1) | ||
except KeyboardInterrupt: | ||
print_err("Aborted") | ||
sys.exit(1) |
Oops, something went wrong.