David Knaack
2d4b183fce
refactor: replace module_config_derive with serde ( #3786 )
...
* 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>
2022-03-26 10:42:19 +01:00
Kotaro Abe
32aca11c4a
Add option gcloud.project_aliases ( #3599 )
...
* feat: gcloud.project_aliases
* feat: add option gcloud.project_aliases
2022-02-14 13:16:45 +01:00
David Knaack
77182a9a22
chore(clippy): fix new clippy lints ( #3294 )
2021-12-03 00:54:56 -06:00
Fred Cox
c1f2d345aa
fix(escaping): move escaping to individual variables ( #3107 )
2021-11-01 22:18:45 +01:00
David Knaack
af43aeefba
fix(clippy): fix new clippy lints ( #2939 )
2021-07-29 14:27:46 -04:00
Dario Vladović
ff3c893a76
feat(gcloud): introduce separate account
& domain
format string variables ( #2594 )
...
* feat(gcloud): split gcloud profile into `account` & `domain` format variables
* docs(gcloud): update documentation
Co-authored-by: Filip Bachul <filip.b@masterborn.com>
2021-04-30 08:19:54 +02:00
Dario Vladović
d242d40db6
feat(gcloud): honor CLOUDSDK_CORE_PROJECT
env variable ( #2596 )
...
Co-authored-by: Filip Bachul <filip.b@masterborn.com>
2021-04-30 08:13:51 +02:00
Dario Vladović
8a8dca71a6
fix(gcloud): add double space after cloud emoji symbol ( #2666 )
...
* fix(gcloud): add double space after cloud emoji symbol
* docs(gcloud): update docs
2021-04-29 19:18:20 +02:00
Dario Vladović
4fda947cda
refactor(gcloud): lazily read active gcloud config ( #2592 )
...
* refactor(gcloud): lazily read active config once
* refactor(gcloud): wrap gcloud config with `GcloudContext`
2021-04-23 08:27:53 +02:00
David Knaack
d3002cf961
test: avoid setting $HOME ( #2155 )
...
* test: avoid setting $HOME
* add comment to get_home
* move everything to context.get_home
2021-01-19 23:23:27 +01:00
Hanif Ariffin
5722b17f9e
fix: Applied clippy warnings ( #2153 )
...
* Applied changes suggested by clippy
In general:
1. Prefer std::path::Path over std::path::PathBuf
2. Simplified code with string formating...
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
* Fixed test
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
* Fixed formatting
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
2021-01-16 13:26:52 +01:00
Jamie Kirkpatrick
3846070efa
fix(gcloud): respect overides of the active gcloud config ( #1846 )
2020-11-05 18:47:58 +01:00
Tilmann Meyer
88b603be38
test: introduce env variable mocking ( #1490 )
2020-08-07 15:13:12 -04:00
Takahiro Tsuruda
c5f2eedf07
feat: Add gcloud module ( #1493 )
...
* feat(gcloud): Add document of gcloud module
Signed-off-by: dulltz <isrgnoe@gmail.com>
* feat(gcloud): Add gcloud module
Signed-off-by: dulltz <isrgnoe@gmail.com>
* feat(gcloud): Add test for gcloud module
Signed-off-by: dulltz <isrgnoe@gmail.com>
* Apply the comment
https://github.com/starship/starship/pull/1493\#discussion_r456965413
Signed-off-by: dulltz <isrgnoe@gmail.com>
2020-08-03 23:30:20 +02:00