Add remote_topgrade_path configuration option

This commit is contained in:
Alex Hamilton
2020-07-10 02:45:15 -05:00
committed by GitHub
parent 6a1b11bc52
commit 69b9c4b24c
4 changed files with 17 additions and 5 deletions

View File

@@ -166,6 +166,7 @@ pub struct ConfigFile {
disable: Option<Vec<Step>>,
ignore_failures: Option<Vec<Step>>,
remote_topgrades: Option<Vec<String>>,
remote_topgrade_path: Option<String>,
ssh_arguments: Option<String>,
git_arguments: Option<String>,
tmux_arguments: Option<String>,
@@ -466,6 +467,11 @@ impl Config {
&self.config_file.remote_topgrades
}
/// Path to Topgrade executable used for all remote hosts
pub fn remote_topgrade_path(&self) -> &str {
self.config_file.remote_topgrade_path.as_deref().unwrap_or("topgrade")
}
/// Extra SSH arguments
pub fn ssh_arguments(&self) -> &Option<String> {
&self.config_file.ssh_arguments