Skip to content

Commit

Permalink
Add version check command to cli (nasa/fprime#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x48piraj committed Jan 10, 2024
1 parent 107b7a4 commit aac6b20
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/fprime/util/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 19 in src/fprime/util/cli.py

View workflow job for this annotation

GitHub Actions / Spell checking

`sysinfo` is not a recognized word. (unrecognized-spelling)
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
Expand Down Expand Up @@ -111,6 +111,15 @@ def add_special_parsers(
formatter_class=argparse.RawDescriptionHelpFormatter,
)

subparsers.add_parser(
"sysinfo",

Check failure on line 115 in src/fprime/util/cli.py

View workflow job for this annotation

GitHub Actions / Spell checking

`sysinfo` is not a recognized word. (unrecognized-spelling)
description=help_text.long("sysinfo"),

Check failure on line 116 in src/fprime/util/cli.py

View workflow job for this annotation

GitHub Actions / Spell checking

`sysinfo` is not a recognized word. (unrecognized-spelling)
help=help_text.short("sysinfo"),

Check failure on line 117 in src/fprime/util/cli.py

View workflow job for this annotation

GitHub Actions / Spell checking

`sysinfo` is not a recognized word. (unrecognized-spelling)
parents=[common],
add_help=False,
formatter_class=argparse.RawDescriptionHelpFormatter,
)

# New functionality
new_parser = subparsers.add_parser(
"new",
Expand Down Expand Up @@ -211,6 +220,7 @@ def add_special_parsers(
return {
"hash-to-file": run_hash_to_file,
"info": run_info,
"sysinfo": run_sysinfo,

Check failure on line 223 in src/fprime/util/cli.py

View workflow job for this annotation

GitHub Actions / Spell checking

`sysinfo` is not a recognized word. (unrecognized-spelling)
"new": run_new,
"format": run_code_format,
}
Expand Down

0 comments on commit aac6b20

Please sign in to comment.