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
It would be nice to provide a common cml command to unify all the different scripts that conform our public interface. Executing cml command could be more practical than the current cml-command because the former provides:
A more sensible default command on our container images, instead of using cml-runner as we're currently doing:
A canonical way of specifying options that are common to all the commands, like obtaining the used CML version. Calling cml-command --version isn't as intuitive as calling cml --version for a set of tools that get released together.
It would be similar to many other modern command-line tools like gh or dvc where users already expect a single base command.
We can preserve backward compatibility in the same ways as Git, so cml-command and cml command become equivalent.
Additionally, it would be nice to consider more descriptive names for some of the commands and keep aliases for backwards compatibility.
Reacted by Dmitry Petrov, Casper da Costa-Luis and DavidGOrtega
@DavidGOrtega, yes it does. I was commenting on the link that @casperdcl shared about gh adding support for extension/third-party subcommands. git also supports third-party extension commands already, I am just thinking of ways to do that. 🙂
Activity
casperdcl commentedon Aug 24, 2021
btw
gitalready supports subcommands, andghalso just added support. Should do the same forcml.skshetry commentedon Aug 24, 2021
I have been thinking of doing the same for
dvc, but argparse hasn't made that easy. 😄DavidGOrtega commentedon Aug 31, 2021
But dvc already have subcommands @skshetry ?
I also thought on this. Will make the code dryer since we also repeat many times variables or prepare the output redirecting the console, etc...
skshetry commentedon Aug 31, 2021
@DavidGOrtega, yes it does. I was commenting on the link that @casperdcl shared about
ghadding support for extension/third-party subcommands.gitalso supports third-party extension commands already, I am just thinking of ways to do that. 🙂