FIX: change name weekly-check to db-check
This commit is contained in:
@ -2,8 +2,9 @@ import argparse
|
||||
import sys
|
||||
|
||||
from datetime import date
|
||||
from db_diff.check import db_check_diff
|
||||
from deps_status.check import deps_status_check, subprocess_cmd
|
||||
from weekly_diff.check import weekly_check_diff
|
||||
|
||||
|
||||
assert sys.version_info >= (
|
||||
3,
|
||||
@ -23,9 +24,9 @@ def parse_args():
|
||||
)
|
||||
parser.add_argument(
|
||||
"-w",
|
||||
"--weekly-check",
|
||||
"--db-check",
|
||||
action="store_true",
|
||||
help="Report new, deleted or changed modules and print it to pmodules_changes.md.",
|
||||
help="Report new, deleted or changed modules, write it to the database and print changes to pmodules_changes.md.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--select-module",
|
||||
@ -52,8 +53,8 @@ def main():
|
||||
module_cmd_process = subprocess_cmd(module_cmd)
|
||||
|
||||
# Check for Pmodules addition, deletion or changes of state
|
||||
if cli_args.weekly_check:
|
||||
weekly_check_diff(module_cmd_process.stderr, Pmodules_db_path, Pmodules_states)
|
||||
if cli_args.db_check:
|
||||
db_check_diff(module_cmd_process.stderr, Pmodules_db_path, Pmodules_states)
|
||||
|
||||
# Check for module dependencies status and change the main module status accordingly
|
||||
if cli_args.deps_check:
|
||||
|
Reference in New Issue
Block a user