summaryrefslogtreecommitdiffstats
path: root/src/configs/starship_root.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2021-02-11 21:34:47 +0100
committerGitHub <noreply@github.com>2021-02-11 21:34:47 +0100
commiteccbda8328159adbb261112cba285d1f63ae29e7 (patch)
tree7c0311bada5fb13f96e2ad7f6da601b322b54dbf /src/configs/starship_root.rs
parent04d1332f9cffda9d0271ad99ac50bec17e918eaf (diff)
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>
Diffstat (limited to 'src/configs/starship_root.rs')
-rw-r--r--src/configs/starship_root.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/configs/starship_root.rs b/src/configs/starship_root.rs
index 5450747e4..0c9ccc8fe 100644
--- a/src/configs/starship_root.rs
+++ b/src/configs/starship_root.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
pub struct StarshipRootConfig<'a> {
pub format: &'a str,
pub scan_timeout: u64,
+ pub command_timeout: u64,
pub add_newline: bool,
}
@@ -78,6 +79,7 @@ impl<'a> RootModuleConfig<'a> for StarshipRootConfig<'a> {
StarshipRootConfig {
format: "$all",
scan_timeout: 30,
+ command_timeout: 500,
add_newline: true,
}
}