pub fn auto_proxy(network: Network, url: Config<&str>) -> Result<ExitStatus> {
    let mut cmd = cmd();
    match url {
        Config::Off => {
            cmd.args(&["-setautoproxystate", network.as_str(), OFF]);
        }
        Config::On => {
            cmd.args(&["-setautoproxystate", network.as_str(), ON]);
        }
        Config::Value(url) => {
            cmd.args(&["-setautoproxyurl", network.as_str(), url]);
        }
    }
    cmd.status()
}
/// macOS Proxies: Atuomatic Proxy Configuration
macOS Proxies: Atuomatic Proxy Configuration
macOS Proxies : Atuomatic Proxy Configuration
pub fn auto_proxy(network: Network, url: Config<&str>) -> Result<ExitStatus> {
    let mut cmd = cmd();
    match url {
        Config::Off => {
            cmd.args(&["-setautoproxystate", network.as_str(), OFF]);
        }
        Config::On => {
            cmd.args(&["-setautoproxystate", network.as_str(), ON]);
        }
        Config::Value(url) => {
            cmd.args(&["-setautoproxyurl", network.as_str(), url]);
        }
    }
    cmd.status()
}
pub fn auto_proxy ( network : Network , url : Config < & str > ) -> Result < ExitStatus > { let mut cmd = cmd ( ) ; match url { Config :: Off => { cmd . args ( & [ " " , network . as_str ( ) , OFF ] ) ; } Config :: On => { cmd . args ( & [ " " , network . as_str ( ) , ON ] ) ; } Config :: Value ( url ) => { cmd . args ( & [ " " , network . as_str ( ) , url ] ) ; } } cmd . status ( ) }
macOS Proxies: Atuomatic Proxy Configuration
macOS Proxies : Atuomatic Proxy Configuration
network
Network
url
Config<&str>
network
Network
url
Config<&str>