We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9f4f5 commit cd7518bCopy full SHA for cd7518b
1 file changed
src/cfengine_cli/dev.py
@@ -9,6 +9,7 @@
9
print_release_dependency_tables,
10
)
11
from cfengine_cli.docs import update_docs, check_docs
12
+from cfengine_cli.format import format_paths
13
from cfengine_cli.syntax_tree import syntax_tree
14
15
@@ -49,7 +50,11 @@ def print_dependency_tables(args) -> int:
49
50
51
def format_docs(files) -> int:
52
_expect_repo("documentation")
- return update_docs(files)
53
+ ret = update_docs(files)
54
+ # Also run the same logic as `cfengine format` so .cf / .json files
55
+ # are formatted without having to run that command manually.
56
+ ret |= format_paths(files, line_length=80, check=False)
57
+ return ret
58
59
60
def lint_docs() -> int:
0 commit comments