diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9563fea24..d04889338 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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! 🎉 --- diff --git a/mlc/main.py b/mlc/main.py index 562c3d9c4..17911b212 100644 --- a/mlc/main.py +++ b/mlc/main.py @@ -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" @@ -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.') @@ -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}.") diff --git a/pyproject.toml b/pyproject.toml index 314d42139..0582c4b91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "systems@mlcommons.org" }