You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the CLI handler is hosting most of the actual execution logic while being tied to the CLI input. It'd be nice if the logic got moved somewhere separately to better accept arguments from other inputs without the need to rewrite most of the cli.py code.
The text was updated successfully, but these errors were encountered:
Totally agree. I kind of designed it with core.Distami being kind of the API, and CLI being the process, but really the CLI and process should be separated as well.
Guess the exec logic here is the copy() function and parallel copy setup. So no matter the input / parser the data should be:
AMI ID
AMI Region
Regions to copy to
Accounts to share with
So the CLI should be left only with arg parser and the functionality moved somewhere in core. It can be probably in it's own class to still allow using Distami without change.
At the moment the CLI handler is hosting most of the actual execution logic while being tied to the CLI input. It'd be nice if the logic got moved somewhere separately to better accept arguments from other inputs without the need to rewrite most of the cli.py code.
The text was updated successfully, but these errors were encountered: