Parse CLI options, including presets

This commit is contained in:
Teoh Han Hui 2024-06-26 08:33:06 +08:00
parent 7534371b05
commit bf2c3c51d4
No known key found for this signature in database
GPG key ID: D43E2BABAF97DCAE
12 changed files with 1043 additions and 2 deletions

71
.editorconfig Normal file
View file

@ -0,0 +1,71 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.csv]
trim_trailing_whitespace = false
[*.js]
indent_style = space
indent_size = 4
[*.json]
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false
[*.py]
indent_style = space
indent_size = 4
[*.rs]
indent_style = space
indent_size = 4
[*.sh]
indent_style = space
indent_size = 4
[*.toml]
indent_style = space
indent_size = 4
[*.{yaml,yml}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
[.github/{actions,workflows}/**/*.yml]
indent_style = space
indent_size = 2
[Cargo.toml]
indent_style = space
indent_size = 4
[Makefile]
indent_style = tab
indent_size = 4
[neofetch]
indent_style = space
indent_size = 4
[package.json]
indent_style = space
indent_size = 2