From af677c8a7d61925b5288b9176d58fc3f79eb0810 Mon Sep 17 00:00:00 2001 From: Ali Mosallaei Date: Wed, 24 Jul 2024 10:21:14 -0700 Subject: [PATCH] Subprocess call quietly --- src/fppm/cli/commands/init.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fppm/cli/commands/init.py b/src/fppm/cli/commands/init.py index 0b3a9ad..08fe2dd 100644 --- a/src/fppm/cli/commands/init.py +++ b/src/fppm/cli/commands/init.py @@ -76,13 +76,14 @@ def create_project_yaml_file(args, context) -> int: ] ) - subprocess.check_call( + subprocess.call( [ "git", "checkout", f"tags/{SUBTOPOLOGY_AC_TAG}", ], cwd="fprime-subtopology-tool", + stdout=open(os.devnull, "wb"), ) except Exception as e: FppmUtils.print_error( @@ -90,7 +91,7 @@ def create_project_yaml_file(args, context) -> int: ) return 1 - print( + FppmUtils.print_warning( f"[INFO]: Subtopology autocoder installed at {SUBTOPOLOGY_AC_TAG}. Please follow the instructions in the tool's docs/README.md file to add the tool to your CMake process." )