From aac6b2064f544c0191bdc764e8297caad613335d Mon Sep 17 00:00:00 2001 From: Piyush Raj Date: Wed, 10 Jan 2024 06:45:04 +0530 Subject: [PATCH] Add version check command to cli (nasa/fprime#2407) --- src/fprime/util/cli.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/fprime/util/cli.py b/src/fprime/util/cli.py index bf7a4ed6..93d18aa4 100644 --- a/src/fprime/util/cli.py +++ b/src/fprime/util/cli.py @@ -16,7 +16,7 @@ from fprime.fbuild.target import Target from fprime.fpp.cli import add_fpp_parsers from fprime.util.build_helper import load_build -from fprime.util.commands import run_code_format, run_hash_to_file, run_info, run_new +from fprime.util.commands import run_code_format, run_hash_to_file, run_info, run_new, run_sysinfo from fprime.util.help_text import HelpText from fprime.fpp.visualize import add_fpp_viz_parsers from fprime.fpp.impl import add_fpp_impl_parsers @@ -111,6 +111,15 @@ def add_special_parsers( formatter_class=argparse.RawDescriptionHelpFormatter, ) + subparsers.add_parser( + "sysinfo", + description=help_text.long("sysinfo"), + help=help_text.short("sysinfo"), + parents=[common], + add_help=False, + formatter_class=argparse.RawDescriptionHelpFormatter, + ) + # New functionality new_parser = subparsers.add_parser( "new", @@ -211,6 +220,7 @@ def add_special_parsers( return { "hash-to-file": run_hash_to_file, "info": run_info, + "sysinfo": run_sysinfo, "new": run_new, "format": run_code_format, }