Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from GO #45

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ Once your contribution exceeds 50 lines of code (in total), we will:

## Current Contributors

- **[Arjun Suresh]** - *Initial Development*
- **[Anandhu Sooraj]** - *Initial Development*
- **[Shaik Masthan]** - *Initial Development*
- **[Sahil Avaran]** - *Initial Development*, added logging
- **[Ayushi Chaudhari]** - *Initial Development*
- **[Contributor 1]** - Added core features for CLI workflow.
- **[Contributor 2]** - Refactored caching system and enhanced performance.
- **[Contributor 3]** - Improved documentation and code structure.
- **[Arjun Suresh]** - *Initial Development Discussions, {Script,Cache} Action implementations*
- **[Anandhu Sooraj]** - *Initial Development Discussions, RepoAction implmentation, Github Tests*
- **[Shaik Masthan]** - *Initial Development Discussions*
- **[Sahil Avaran]** - *Initial Development Discussions*, added logging
- **[Your Name Here]** - This could be you! 🎉

---
Expand Down
12 changes: 12 additions & 0 deletions mlc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,7 @@ def search(self, i):
i['target_name'] = "cache"
#logger.debug(f"Searching for cache with input: {i}")
return self.parent.search(i)
find = search

def rm(self, i):
i['target_name'] = "cache"
Expand Down Expand Up @@ -1313,6 +1314,16 @@ def mlcr():
if default_parent is None:
default_parent = Action()

def process_console_output(res, target, action, run_args):
if action == "find":
if len(res['list']) == 0:
logger.warn(f"""No {target} entry found for the specified tags: {run_args['tags']}!""")
else:
for item in res['list']:
logger.info(f"""Item path: {item.path}""")



# Main CLI function
def main():
parser = argparse.ArgumentParser(prog='mlc', description='A CLI tool for managing repos, scripts, and caches.')
Expand Down Expand Up @@ -1381,6 +1392,7 @@ def main():
res = method(run_args)
if res['return'] > 0:
logger.error(res.get('error', f"Error in {action}"))
process_console_output(res, args.target, args.command, run_args)
else:
logger.info(f"Error: '{args.command}' is not supported for {args.target}.")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mlcflow"
version = "0.1.19"
version = "0.1.20"
description = "An automation interface for ML applications"
authors = [
{ name = "MLCommons", email = "[email protected]" }
Expand Down
Loading