Skip to content

Commit

Permalink
more user-friendly flags for "cm init"
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Aug 12, 2024
1 parent 532850b commit 2f62c09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cm/cmind/repo/automation/core/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def init(self, i):
(CM input dict):
(quiet) (bool): if True, skip asking questions about sudo, etc
(repo_name) (str): automation repository to pull ('mlcommons@cm4mlops' by default)
(repo_branch) (str): branch to use ('' by default)
(repo) (str): automation repository to pull ('mlcommons@cm4mlops' by default)
(branch) (str): branch to use ('' by default)
Returns:
Expand All @@ -226,10 +226,10 @@ def init(self, i):

quiet = i.get('quiet', False)

repo_name = i.get('repo_name', '')
repo_name = i.get('repo', '')
if repo_name == '': repo_name = 'mlcommons@cm4mlops'

repo_branch = i.get('repo_branch', '')
repo_branch = i.get('branch', '')

r = cm_init.run(quiet = quiet, repo_name = repo_name, repo_branch = repo_branch)
if r['return']>0: return r
Expand Down

0 comments on commit 2f62c09

Please sign in to comment.