Skip to content

Commit 283d955

Browse files
authored
Merge branch 'mlcommons:dev' into dev
2 parents 0e817ce + e34b924 commit 283d955

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.7
1+
1.1.9

mlc/main.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def process_console_output(res, target, action, run_args):
129129
def build_pre_parser():
130130
pre_parser = argparse.ArgumentParser(add_help=False)
131131
pre_parser.add_argument("action", nargs="?", help="Top-level action (run, build, help, etc.)")
132-
pre_parser.add_argument("target", choices=['run', 'script', 'cache', 'repo'], nargs="?", help="Target (repo, script, cache, ...)")
132+
pre_parser.add_argument("target", choices=['run', 'script', 'cache', 'repo', 'repos'], nargs="?", help="Target (repo, script, cache, ...)")
133133
pre_parser.add_argument("-h", "--help", action="store_true")
134134
return pre_parser
135135

@@ -141,7 +141,7 @@ def build_parser(pre_args):
141141
# General commands
142142
for action in ['run', 'pull', 'test', 'add', 'show', 'list', 'find', 'search', 'rm', 'cp', 'mv', 'help']:
143143
p = subparsers.add_parser(action, add_help=False)
144-
p.add_argument('target', choices=['repo', 'script', 'cache'])
144+
p.add_argument('target', choices=['repo', 'repos', 'script', 'cache'])
145145
p.add_argument('details', nargs='?', help='Details or identifier (optional)')
146146
p.add_argument('extra', nargs=argparse.REMAINDER)
147147

@@ -239,11 +239,11 @@ def main():
239239
240240
Each target has a specific set of actions to tailor automation workflows, as shown below:
241241
242-
| Target | Actions |
243-
|---------|-------------------------------------------------------|
242+
| Target | Actions |
243+
|---------|-----------------------------------------------------------|
244244
| script | run, find/search, rm, mv, cp, add, test, docker-run, show |
245-
| cache | find/search, rm, show |
246-
| repo | pull, search, rm, list, find/search |
245+
| cache | find/search, rm, show |
246+
| repo | pull, search, rm, list, find/search |
247247
248248
Example:
249249
mlc run script detect-os
@@ -313,6 +313,12 @@ def main():
313313
print(help_text)
314314
sys.exit(0)
315315

316+
# show repos alias list repo
317+
if args.command in ("show"):
318+
args.command = "list"
319+
if args.target == "repos":
320+
args.target = "repo"
321+
316322
action = get_action(args.target, default_parent)
317323

318324
if not action or not hasattr(action, args.command):

mlc/repo_action.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ def pull(self, run_args):
447447
def list(self, run_args):
448448
"""
449449
####################################################################################################################
450-
Target: Repo
451-
Action: List
450+
Target: Repo/Repos
451+
Action: List/Show
452452
####################################################################################################################
453453
454454
The `list` action displays all registered MLC repositories along with their aliases and paths.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mlcflow"
7-
version = "1.1.7"
7+
version = "1.1.8"
88

99
description = "An automation interface tailored for CPU/GPU benchmarking"
1010
authors = [

0 commit comments

Comments
 (0)