[ty] Add --config CLI arg (#17697)

This commit is contained in:
justin 2025-05-09 02:38:37 -04:00 committed by GitHub
parent 6c177e2bbe
commit f46ed8d410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 186 additions and 4 deletions

View file

@ -38,7 +38,7 @@ pub struct Options {
}
impl Options {
pub(crate) fn from_toml_str(content: &str, source: ValueSource) -> Result<Self, TyTomlError> {
pub fn from_toml_str(content: &str, source: ValueSource) -> Result<Self, TyTomlError> {
let _guard = ValueSourceGuard::new(source, true);
let options = toml::from_str(content)?;
Ok(options)