You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have several MACH configs in different repos, sometimes I want to compare versions or variable settings. I've found comparing them is easier if everything in the yml is sorted consistently
Describe the solution you'd like
Add mach-composer fmt to format a MACH config yaml file in a strict-defined order:
site component variables and secrets sorted alphabetically
component version section sorted alphabetically based on component name
(Nice to have): sort every other section alphabetically, f.e. mach-plugin section on name as well
Is your proposal related to a problem?
We have several MACH configs in different repos, sometimes I want to compare versions or variable settings. I've found comparing them is easier if everything in the yml is sorted consistently
Describe the solution you'd like
Add mach-composer fmt to format a MACH config yaml file in a strict-defined order:
Describe alternatives you've considered
Precommit hook yaml sorting kinda works; https://github.com/leehambley/pre-commit-sort-yaml-keys
The text was updated successfully, but these errors were encountered: