Skip to content

Commit

Permalink
Refactor smart cli into subparsers (#308)
Browse files Browse the repository at this point in the history
Refactor CLI by using subparsers

[ committed by @ankona ]
[ reviewed by @MattToast ]
  • Loading branch information
ankona authored Jul 19, 2023
1 parent a9018e0 commit c7eb6d4
Show file tree
Hide file tree
Showing 8 changed files with 1,274 additions and 460 deletions.
9 changes: 8 additions & 1 deletion smartsim/_core/_cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from smartsim._core._cli.cli import main
import sys

from smartsim._core._cli.cli import default_cli

def main() -> int:
smart_cli = default_cli()
return smart_cli.execute(sys.argv)


if __name__ == "__main__":
main()
Loading

0 comments on commit c7eb6d4

Please sign in to comment.