1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-10-31 18:52:29 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
David Knaack
094f982df1
fix(schema): move config-schema into docs folder (#3878) 2022-04-16 10:16:27 -04:00
David Knaack
18ad26f98d
feat: allow printing config file schema (#3737) 2022-04-01 17:14:05 +02:00
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
7347d2c195
fix: typo of variable in CONTRIBUTING (#3595) 2022-02-11 12:07:26 +01:00
TrickyPi
65f29754d3
fix(nodejs): use e718 as the default of symbol in node configuration (#3533)
* fix: use e718 as the default of symbol in node configuration

* wip: change nodejs symbol in docs/config & add a nodejs symbol configuration in docs/presets

* wip: update CONTRIBUTING.md
2022-01-30 10:28:00 +01:00
Harald Hoyer
4f46411403
feat: add a container indicator (#3304)
* test: add mock method for absolute files

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>

* feat(module): add a container indicator module

Adds a container type indicator, if inside a container,
detected via the presence of some marker files.

E.g. inside a podman container entered with `toolbox enter`
the prompt changes to the container name and version.

```
starship on  container_rebased [$!] is 📦 v1.0.0 via 🦀 v1.56.1
❯ toolbox enter

starship on  container_rebased [$!] is 📦 v1.0.0 via 🦀 v1.56.1
⬢ [fedora-toolbox:35] ❯
```

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2022-01-21 09:44:46 -06:00
Kevin Song
0965667807
ci: Use dprint to format documentation + TOML files (#3426)
Adds Rust-based standardized markdown formatting and a CI step to catch unformatted files.
2022-01-20 11:32:09 +03:00
Kevin Song
4c4cd340dd
docs: add a checklist for new modules (#3076) 2021-10-05 06:16:19 -04:00
David Knaack
1eaf996a36
fix(windows): avoid inadvertly running exes from cwd (#2885)
On Windows when running commands with their name instead of the path with Command::new, executable with that name from the current working directory will be executed.

This PR replaces all instances of Command::new with a new create_command function which will first resolve any executable paths and avoid this issue.
2021-07-16 15:20:59 -04:00
David Knaack
eccbda8328
feat: allow changing default command timeout (#2283)
* feat: allow changing default command timeout

* fix clippy

* add doc to exec_cmd in Context

* update docs in CONTRIBUTING.md

* Fix comment in CONTRIBUTING.md

Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>

Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2021-02-11 21:34:47 +01:00
Kevin Song
72264aba25
docs: Add note about Crowdin-managed files to CONTRIBUTING.md (#2013) 2020-12-20 19:56:06 -05:00
Adrian Duong
875ed1ed12
docs: fix typo in CONTRIBUTING.md (#1772)
consistend -> consistent
2020-10-13 12:08:32 -04:00
Tilmann Meyer
2233683410
feat: add error messaging (#1576)
This creates a custom logger for the log crate which logs everything to a file (/tmp/starship/session_$STARSHIP_SESSION_KEY.log) and it logs everything above Warn to stderr, but only if the log file does not contain the line that should be logged resulting in an error or warning to be only logged at the first starship invocation after opening the shell.
2020-09-28 16:38:50 -04:00
Thomas O'Donnell
ecd3d6e9f0
docs: update clippy command in the CONTRIBUTING.md (#1665)
Have updated the clippy command in the CONTRIBUTING.md to match the one
that is used by the CI system.
2020-09-20 18:02:24 +02:00
Andrew
c22ea6d889
style: make rustfmt use the default configuration (#1661)
by adding an empty `rustfmt.toml` configuration file, thus allowing
users who have their own configuration to contribute without friction.
2020-09-19 08:45:17 +02:00
Tilmann Meyer
88b603be38
test: introduce env variable mocking (#1490) 2020-08-07 15:13:12 -04:00
Thomas O'Donnell
4788092423
docs: remove redundant settings in Contributing guide (#1326)
Have removed some redundant settings in the CONTRIBUTING.md since
starship should be the only application using the `STARSHIP_LOG` env
var.
2020-06-14 16:02:24 -04:00
anouar kappitou
feac3d56ce
fix: replacing default RUST_LOG environement variable with starship specific one, to prevent interlacing (#1280)
Co-authored-by: Kappitou Anouar <anourkappitou@gmail.com>
2020-06-14 20:22:34 +02:00
David Knaack
56d475578e
fix: possible fix for Intermittent Test Failures in GH Actions (#987)
* fix: possible fix for Intermittent Test Failures in GH Actions

* undo some of the chnages to directory.rs

* typo

* add docs
2020-03-15 12:12:25 -05:00
Sam Rose
8555143533
docs: Add git workflow to CONTRIBUTING.md (#876) 2020-01-31 13:52:20 -05:00
Matan Kushner
09fe0afc14
ci: Remove Docker test environment from CI (#806) 2020-01-06 00:35:46 -05:00
Carl Summers
097ac144f4 docs: Add docs for running the starship website locally (#552) 2019-10-18 23:00:38 +09:00
Matan Kushner
3e23a9a73c chore: Rename integration_test to acceptance_test (#356) 2019-09-12 18:01:13 -05:00
Hofer-Julian
b2dcdaae5f docs: Include Docker related information in CONTRIBUTING (#321) 2019-09-09 11:10:45 -05:00
Kevin Song
da86b4f847
fix: Failing Tests if home is a git directory (#214) 2019-08-21 09:37:43 -07:00
Matan Kushner
ae1176c8b0
docs: Add CONTRIBUTNG.md (#79) 2019-06-15 11:23:29 +01:00