-
Notifications
You must be signed in to change notification settings - Fork 38
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
WIP: List directory and format files #4
Conversation
src/lib.rs
Outdated
|
||
/// Config for each formatters | ||
#[derive(Debug, Deserialize)] | ||
struct FmtConfig { |
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.
enabled: bool
src/lib.rs
Outdated
|
||
if let true = fmtToml.as_path().exists() { | ||
if let true = fmt_toml.as_path().exists() { | ||
println!("found fmt.toml"); | ||
println!("set path to {}/", cwd.to_str().unwrap_or("")); |
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.
builtin_formatters = mapFmtConfig
let toml_content: Root = toml::from_str(&open_file)?; | ||
let rustdir = toml_content.rustfmt | ||
.and_then(|config| config.includes).unwrap_or(Vec::new()); | ||
|
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.
final_config = merge(builtin_formatters, toml_content)
0322f9c
to
431a174
Compare
…nstall-nix-action-26 chore(deps): bump cachix/install-nix-action from 25 to 26
Tracking progress for:
fmt.toml
format