cfengine 0.12.1__tar.gz → 0.12.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. {cfengine-0.12.1 → cfengine-0.12.2}/PKG-INFO +18 -1
  2. {cfengine-0.12.1 → cfengine-0.12.2}/README.md +17 -0
  3. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine.egg-info/PKG-INFO +18 -1
  4. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/lint.py +1 -1
  5. {cfengine-0.12.1 → cfengine-0.12.2}/.github/dependabot.yml +0 -0
  6. {cfengine-0.12.1 → cfengine-0.12.2}/.github/workflows/format.yml +0 -0
  7. {cfengine-0.12.1 → cfengine-0.12.2}/.github/workflows/lint.yml +0 -0
  8. {cfengine-0.12.1 → cfengine-0.12.2}/.github/workflows/pypi-publish.yml +0 -0
  9. {cfengine-0.12.1 → cfengine-0.12.2}/.github/workflows/test.yml +0 -0
  10. {cfengine-0.12.1 → cfengine-0.12.2}/.gitignore +0 -0
  11. {cfengine-0.12.1 → cfengine-0.12.2}/.python-version +0 -0
  12. {cfengine-0.12.1 → cfengine-0.12.2}/HACKING.md +0 -0
  13. {cfengine-0.12.1 → cfengine-0.12.2}/LICENSE +0 -0
  14. {cfengine-0.12.1 → cfengine-0.12.2}/ci/01-install.sh +0 -0
  15. {cfengine-0.12.1 → cfengine-0.12.2}/ci/02-safe-tests.sh +0 -0
  16. {cfengine-0.12.1 → cfengine-0.12.2}/ci/03-unsafe-tests.sh +0 -0
  17. {cfengine-0.12.1 → cfengine-0.12.2}/pyproject.toml +0 -0
  18. {cfengine-0.12.1 → cfengine-0.12.2}/setup.cfg +0 -0
  19. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine.egg-info/SOURCES.txt +0 -0
  20. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine.egg-info/dependency_links.txt +0 -0
  21. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine.egg-info/entry_points.txt +0 -0
  22. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine.egg-info/requires.txt +0 -0
  23. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine.egg-info/top_level.txt +0 -0
  24. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/__init__.py +0 -0
  25. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/__main__.py +0 -0
  26. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/commands.py +0 -0
  27. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/deptool-README.md +0 -0
  28. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/deptool.py +0 -0
  29. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/dev.py +0 -0
  30. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/docs.py +0 -0
  31. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/format.py +0 -0
  32. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/main.py +0 -0
  33. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/__init__.py +0 -0
  34. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/analyze.py +0 -0
  35. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/check_download_matches_git.py +0 -0
  36. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/download.py +0 -0
  37. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/generate_git_tags.py +0 -0
  38. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/generate_release_information.py +0 -0
  39. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/generate_vcf_download.py +0 -0
  40. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/masterfiles/generate_vcf_git_checkout.py +0 -0
  41. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/paths.py +0 -0
  42. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/policy_language.py +0 -0
  43. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/profile.py +0 -0
  44. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/shell.py +0 -0
  45. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/utils.py +0 -0
  46. {cfengine-0.12.1 → cfengine-0.12.2}/src/cfengine_cli/version.py +0 -0
  47. {cfengine-0.12.1 → cfengine-0.12.2}/tests/__init__.py +0 -0
  48. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/001_hello_world.expected.cf +0 -0
  49. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/001_hello_world.input.cf +0 -0
  50. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/002_basics.expected.cf +0 -0
  51. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/002_basics.input.cf +0 -0
  52. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/003_wrapping.expected.cf +0 -0
  53. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/003_wrapping.input.cf +0 -0
  54. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/004_comments.expected.cf +0 -0
  55. {cfengine-0.12.1 → cfengine-0.12.2}/tests/format/004_comments.input.cf +0 -0
  56. {cfengine-0.12.1 → cfengine-0.12.2}/tests/run-format-tests.sh +0 -0
  57. {cfengine-0.12.1 → cfengine-0.12.2}/tests/run-shell-tests.sh +0 -0
  58. {cfengine-0.12.1 → cfengine-0.12.2}/tests/shell/001-help.sh +0 -0
  59. {cfengine-0.12.1 → cfengine-0.12.2}/tests/shell/002-version.sh +0 -0
  60. {cfengine-0.12.1 → cfengine-0.12.2}/tests/shell/003-format.sh +0 -0
  61. {cfengine-0.12.1 → cfengine-0.12.2}/tests/test_deps.py +0 -0
  62. {cfengine-0.12.1 → cfengine-0.12.2}/tests/test_paths.py +0 -0
  63. {cfengine-0.12.1 → cfengine-0.12.2}/tests/test_utils.py +0 -0
  64. {cfengine-0.12.1 → cfengine-0.12.2}/tests/test_version.py +0 -0
  65. {cfengine-0.12.1 → cfengine-0.12.2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cfengine
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Human-oriented CLI for interacting with CFEngine tools
5
5
  License: GNU GENERAL PUBLIC LICENSE
6
6
  Version 3, 29 June 2007
@@ -749,6 +749,23 @@ cfengine format
749
749
  cfengine lint
750
750
  ```
751
751
 
752
+ You can also specify filenames or folders;
753
+
754
+ ```bash
755
+ cfengine lint main.cf
756
+ ```
757
+
758
+ When it finds a mistake, it points out where the problem is like this;
759
+
760
+ ```
761
+ "Hello, CFEngine"
762
+ ifvarclass => "cfengine";
763
+ ^--------^
764
+ Deprecation: Use 'if' instead of 'ifvarclass' at main.cf:5:7
765
+ FAIL: main.cf (1 errors)
766
+ Failure, 1 errors in total.
767
+ ```
768
+
752
769
  Note that since we use a different parser than `cf-agent` / `cf-promises`, they are not 100% in sync.
753
770
  `cf-agent` could point out something as a syntax error, while `cfengine lint` does not and vice versa.
754
771
  We aim to make the tree-sitter parser (used in this tool) more strict in general, so that when `cfengine lint` is happy with your policy, `cf-agent` will also accept it.
@@ -47,6 +47,23 @@ cfengine format
47
47
  cfengine lint
48
48
  ```
49
49
 
50
+ You can also specify filenames or folders;
51
+
52
+ ```bash
53
+ cfengine lint main.cf
54
+ ```
55
+
56
+ When it finds a mistake, it points out where the problem is like this;
57
+
58
+ ```
59
+ "Hello, CFEngine"
60
+ ifvarclass => "cfengine";
61
+ ^--------^
62
+ Deprecation: Use 'if' instead of 'ifvarclass' at main.cf:5:7
63
+ FAIL: main.cf (1 errors)
64
+ Failure, 1 errors in total.
65
+ ```
66
+
50
67
  Note that since we use a different parser than `cf-agent` / `cf-promises`, they are not 100% in sync.
51
68
  `cf-agent` could point out something as a syntax error, while `cfengine lint` does not and vice versa.
52
69
  We aim to make the tree-sitter parser (used in this tool) more strict in general, so that when `cfengine lint` is happy with your policy, `cf-agent` will also accept it.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cfengine
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Human-oriented CLI for interacting with CFEngine tools
5
5
  License: GNU GENERAL PUBLIC LICENSE
6
6
  Version 3, 29 June 2007
@@ -749,6 +749,23 @@ cfengine format
749
749
  cfengine lint
750
750
  ```
751
751
 
752
+ You can also specify filenames or folders;
753
+
754
+ ```bash
755
+ cfengine lint main.cf
756
+ ```
757
+
758
+ When it finds a mistake, it points out where the problem is like this;
759
+
760
+ ```
761
+ "Hello, CFEngine"
762
+ ifvarclass => "cfengine";
763
+ ^--------^
764
+ Deprecation: Use 'if' instead of 'ifvarclass' at main.cf:5:7
765
+ FAIL: main.cf (1 errors)
766
+ Failure, 1 errors in total.
767
+ ```
768
+
752
769
  Note that since we use a different parser than `cf-agent` / `cf-promises`, they are not 100% in sync.
753
770
  `cf-agent` could point out something as a syntax error, while `cfengine lint` does not and vice versa.
754
771
  We aim to make the tree-sitter parser (used in this tool) more strict in general, so that when `cfengine lint` is happy with your policy, `cf-agent` will also accept it.
@@ -396,4 +396,4 @@ def lint_single_arg(arg, strict=True):
396
396
  return lint_folder(arg, strict)
397
397
  assert os.path.isfile(arg)
398
398
 
399
- return lint_single_file(arg, strict)
399
+ return lint_single_file(arg, strict=strict)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes