22from cfbs .commands import generate_release_information_command
33from cfengine_cli .utils import UserError
44from cfengine_cli .deptool import (
5- update_dependency_tables ,
5+ update_dependency_tables as _update_dependency_tables ,
66 print_release_dependency_tables ,
77)
88from cfengine_cli .docs import update_docs , check_docs
@@ -26,35 +26,35 @@ def _expect_repo(repo) -> bool:
2626 return answer
2727
2828
29- def deps_readme () -> int :
29+ def update_dependency_tables () -> int :
3030 answer = _expect_repo ("buildscripts" )
3131 if answer :
32- return update_dependency_tables ()
32+ return _update_dependency_tables ()
3333 return 1
3434
3535
36- def deps_release (args ) -> int :
36+ def print_dependency_tables (args ) -> int :
3737 answer = _expect_repo ("buildscripts" )
3838 if answer :
3939 return print_release_dependency_tables (args )
4040 return 1
4141
4242
43- def docs_format () -> int :
43+ def format_docs () -> int :
4444 answer = _expect_repo ("documentation" )
4545 if answer :
4646 return update_docs ()
4747 return 1
4848
4949
50- def docs_check () -> int :
50+ def lint_docs () -> int :
5151 answer = _expect_repo ("documentation" )
5252 if answer :
5353 return check_docs ()
5454 return 1
5555
5656
57- def release_information () -> int :
57+ def generate_release_information () -> int :
5858 answer = _expect_repo ("release-information" )
5959 if answer :
6060 generate_release_information_command ()
@@ -63,15 +63,15 @@ def release_information() -> int:
6363
6464
6565def dispatch_dev_subcommand (subcommand , args ) -> int :
66- if subcommand == "deps-readme " :
67- return deps_readme ()
68- if subcommand == "deps-release " :
69- return deps_release (args )
70- if subcommand == "docs- format" :
71- return docs_format ()
72- if subcommand == "docs-check " :
73- return docs_check ()
74- if subcommand == "release-information" :
75- return release_information ()
66+ if subcommand == "update-dependency-tables " :
67+ return update_dependency_tables ()
68+ if subcommand == "print-dependency-tables " :
69+ return print_dependency_tables (args )
70+ if subcommand == "format-docs " :
71+ return format_docs ()
72+ if subcommand == "lint-docs " :
73+ return lint_docs ()
74+ if subcommand == "generate- release-information" :
75+ return generate_release_information ()
7676
7777 raise UserError ("Invalid cfengine dev subcommand - " + subcommand )
0 commit comments