Add a key for running remote topgrades

This commit is contained in:
Roey Darwish Dror
2019-06-05 14:15:45 +03:00
parent 232c886be6
commit 4a7218293b
5 changed files with 37 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ pub struct ConfigFile {
commands: Option<Commands>,
git_repos: Option<Vec<String>>,
disable: Option<Vec<Step>>,
remote_topgrades: Option<Vec<String>>,
}
impl ConfigFile {
@@ -198,4 +199,9 @@ impl Config {
pub fn verbose(&self) -> bool {
self.opt.verbose
}
/// List of remote hosts to run Topgrade in
pub fn remote_topgrades(&self) -> &Option<Vec<String>> {
&self.config_file.remote_topgrades
}
}