triton-inference-server / triton_cli

Triton CLI is an open source command line interface that enables users to create, deploy, and profile models served by the Triton Inference Server.
48 stars 2 forks source link

Flatten CLI Args #40

Closed fpetrini15 closed 7 months ago

fpetrini15 commented 7 months ago

Primary Goal: Flatten the command structure of the CLI

Secondary Goal: Update the CLI tests to use the updated command structure.

CLI test helper functions were renamed to prevent confusion with legacy commands, e.g., repo_clear --> _clear

Note: The parser was restructured into groups headed by a comment block for easier readability:

# ================================================
# ARG GROUPS
# ================================================
def add_verbose_args(subcommands):
...
# ================================================
# REPO
# ================================================
def parse_args_repo(parser):
...

It was useful when I was developing but we can discuss other avenues for organization.

This is the new output of triton -h:

image

krishung5 commented 7 months ago

I know it's too late but lgtm 🚀

rmccorm4 commented 7 months ago

Never too late for a 🚀