Stop passing the terminal object
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use super::executor::Executor;
|
||||
use super::terminal::Terminal;
|
||||
use super::terminal::print_separator;
|
||||
use super::utils::Check;
|
||||
use failure;
|
||||
|
||||
#[must_use]
|
||||
pub fn upgrade_macos(terminal: &mut Terminal, dry_run: bool) -> Option<(&'static str, bool)> {
|
||||
terminal.print_separator("App Store");
|
||||
pub fn upgrade_macos(dry_run: bool) -> Option<(&'static str, bool)> {
|
||||
print_separator("App Store");
|
||||
|
||||
let success = || -> Result<(), failure::Error> {
|
||||
Executor::new("softwareupdate", dry_run)
|
||||
|
||||
Reference in New Issue
Block a user