summaryrefslogtreecommitdiffstats
path: root/src/configs/vagrant.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2021-02-15 20:21:21 +0100
committerGitHub <noreply@github.com>2021-02-15 20:21:21 +0100
commit856610d53b140f5ab799341ad97b156883b21d65 (patch)
treed88baafd60c5806fbac32fc4185bd826379e89b2 /src/configs/vagrant.rs
parent6bd4e724e9fdddd355540bf25ff7ae8fea9e3ed6 (diff)
feat(vagrant): Configure when the module is shown (#2314)
* feat(vagrant): Configure when the module is shown This makes it possible to configure when the vagrant module is shown based on the contents of a directory. * fix documentation 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/vagrant.rs')
-rw-r--r--src/configs/vagrant.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configs/vagrant.rs b/src/configs/vagrant.rs
index cab83c01f..94403bb19 100644
--- a/src/configs/vagrant.rs
+++ b/src/configs/vagrant.rs
@@ -8,6 +8,9 @@ pub struct VagrantConfig<'a> {
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
+ pub detect_extensions: Vec<&'a str>,
+ pub detect_files: Vec<&'a str>,
+ pub detect_folders: Vec<&'a str>,
}
impl<'a> RootModuleConfig<'a> for VagrantConfig<'a> {
@@ -17,6 +20,9 @@ impl<'a> RootModuleConfig<'a> for VagrantConfig<'a> {
symbol: "⍱ ",
style: "cyan bold",
disabled: false,
+ detect_extensions: vec![],
+ detect_files: vec!["Vagrantfile"],
+ detect_folders: vec![],
}
}
}