-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨feat: .selene.toml
and selene.toml
are now detected by order of priority
#591
Open
Zeioth
wants to merge
32
commits into
Kampfkarren:main
Choose a base branch
from
Zeioth:dot-selene-toml
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6ad27f6
✨feat: `selene.toml` and `.selene.toml` are not detected by order of …
Zeioth 02213f4
🐛fix(`.selene`): has now order of precedence over `selene.toml`.
Zeioth b4a93e3
🐛fix(error!): instead of eprintln.
Zeioth 13e6286
♻️refactor(read_config_file): Is now a function.
Zeioth 9e91ded
Update selene/src/main.rs
Zeioth de9aa79
fix: Terminate the process when config file is invalid.
Zeioth 8947dea
fix: We now check that the file exist. Also we only raise a error if …
Zeioth 406558f
fix(regression): Ensure it fallback on the default config.
Zeioth f7785fb
refactor of the former
Zeioth 5def22b
♻️refactor: All should be fine now, but we can still refactor the fun…
Zeioth 69d6d98
♻️refactor: All config file detection logic has been moved to functions.
Zeioth 64bbb82
comments: More consistent.
Zeioth d0cb38e
Update CHANGELOG.md
Zeioth e5fd4f0
docs: updated for `.selene.toml`.
Zeioth d7de32e
Merge remote-tracking branch 'refs/remotes/origin/dot-selene-toml'
Zeioth 1c425b8
fix(comments): Our comments were preventing `cargo rustdoc` from runn…
Zeioth 0ef6e80
Update selene/src/main.rs
Zeioth ef996c4
Update selene/src/main.rs
Zeioth 822bc44
refactor: config_paths_to_check is now a constant.
Zeioth ade463c
refactor: read_config_file() -> (String, Option<PathBuf>) the type re…
Zeioth 3812d6b
refactor: Now that we handle the bad utf-8 error correctly, let's add…
Zeioth 47b0642
vscode: relevant changes to vscode extension.
Zeioth 4ca19d4
♻️refactor: We now let rust manage the invalid UTF-8 error instead of…
Zeioth aff6f9a
🐛fix(config file detection): If path exists and fs::read_to_string er…
Zeioth 7c844a3
🐛refactor: There is no need for us to explicitely read the file as ut…
Zeioth 5c02fe9
comments: Better info, in case we decide to enable this.
Zeioth 9829822
fix: The error now works as originally intended → `ERROR: Error readi…
Zeioth ed5e764
Update main.rs → comments
Zeioth 7fa7825
fix: Display the next error ONLY on validate-config → `ERROR: Error r…
Zeioth 8817d13
Solve merge conflict
Zeioth 04ed488
Merge branch 'main' into dot-selene-toml
chriscerie dcf3458
Refactor
chriscerie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't technically accurate because the default is both
selene.toml
and.selene.toml
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is
.selene.toml
because it has precedence overselene.toml
,The only place where
selene.toml
is mentioned as a possible alternative isdocs/src/usagi/configuration
to avoid duplicity that might make the docs harder to understand.If you want to have a different string there, please tell me exactly, or edit the PR.