-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: exit commands with full exception message + add debug logs (#…
…156)
- Loading branch information
1 parent
db0962d
commit 409df59
Showing
24 changed files
with
137 additions
and
133 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
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
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,36 +1,22 @@ | ||
def init(d_args): | ||
from gdk.commands.component.InitCommand import InitCommand | ||
|
||
try: | ||
InitCommand(d_args).run() | ||
except Exception as e: | ||
raise Exception(f"Could not initialize the project due to the following error.\n{e}") | ||
InitCommand(d_args).run() | ||
|
||
|
||
def build(d_args): | ||
from gdk.commands.component.BuildCommand import BuildCommand | ||
|
||
try: | ||
BuildCommand(d_args).run() | ||
except Exception as e: | ||
raise Exception(f"Could not build the project due to the following error.\n{e}") | ||
BuildCommand(d_args).run() | ||
|
||
|
||
def publish(d_args): | ||
from gdk.commands.component.PublishCommand import PublishCommand | ||
|
||
try: | ||
PublishCommand(d_args).run() | ||
except Exception as e: | ||
raise Exception(f"Could not publish the component due to the following error.\n{e}") | ||
PublishCommand(d_args).run() | ||
|
||
|
||
def list(d_args): | ||
from gdk.commands.component.ListCommand import ListCommand | ||
|
||
try: | ||
ListCommand(d_args).run() | ||
except Exception as e: | ||
raise Exception( | ||
f"Could not list the available components from Greengrass Software Catalog due to the following error.\n{e}" | ||
) | ||
ListCommand(d_args).run() |
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
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
Oops, something went wrong.