summaryrefslogtreecommitdiffstats
path: root/src/configs/package.rs
AgeCommit message (Collapse)Author
2022-09-09feat(schema): deny unknown keys (#4270)David Knaack
2022-04-01feat: allow printing config file schema (#3737)David Knaack
2022-03-26refactor: replace module_config_derive with serde (#3786)David Knaack
* refactor: replace module_config_derive with serde Changes include: * Removing `starship_module_config_derive` and replacing it with `serde::Deserialize` * Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde. * Merging `RootModuleConfig` into `ModuleConfig` * Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs` * Deserialization errors (invalid type) are now logged and include the current key and the struct names * Unknown keys are now considered an error. "Did you mean?"-messages are still possible * fix typo Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Matan Kushner <hello@matchai.dev>
2021-08-06feat(package): Add ability to format the version (#2959)Thomas O'Donnell
Have added the ability to use format the version of the package using the `version_format` option. While doing this I have also done some refactoring of the module to remove the if/else if/... block and replace it with an iterator. This should make fix some edge cases where versions are not correctly picked up due to other files an example would be a python project that has a `pyproject.toml` file but using the `setup.cfg` for the package version. It should also make it easier to make the order of the list configurable in the future.
2021-03-31feat(config): allow printing default and computed config (#2521)David Knaack
* feat: allow printing default and computed config * fix custom modules * actually fix custom modules
2021-03-15refactor: replace RootModuleConfig with Default (#2458)David Knaack
2020-07-07feat: refactor modules to use format strings (#1374)Zhenhui Xie
2020-04-28feat(package): configurable displaying package version for packages marked ↵Karol Fuksiewicz
as private (#1109) * feat(package): config for enabling package version in private packages * test(package): refactor package tests
2020-02-01feat!: Update colors of package and php modules (#782)Matan Kushner
2019-10-19refactor: Refactor modules to use module config (#514)Zhenhui Xie