pub struct SdkManagerInstallCommand {Show 13 fields
pub preferred_tools: bool,
pub list: bool,
pub install: Option<Vec<String>>,
pub uninstall: Option<String>,
pub update: bool,
pub sdk_root: Option<PathBuf>,
pub channel: Option<u32>,
pub include_obsolete: bool,
pub no_https: bool,
pub verbose: bool,
pub proxy: Option<String>,
pub proxy_host: Option<String>,
pub proxy_port: Option<String>,
}
Fields
preferred_tools: bool
Install all preferred tools for correct crossbundle work. It will install build-tools;31.0.0, ndk;23.1.7779620, platforms;android-31 and platform-tools
list: bool
List installed and available packages. Use the channel option to include a package from a channel up to and including channel_id. For example, specify the canary channel to list packages from all channels
install: Option<Vec<String>>
Install package. To see all available packages use –list. Example: crossbundle install sdkmanager “ndk;23.1.7779620”
uninstall: Option<String>
Android package that needs to be uninstalled
update: bool
Update all installed packages
sdk_root: Option<PathBuf>
Use the specified SDK path instead of the SDK containing this tool
channel: Option<u32>
Include packages in channels up to and including channel_id. Available channels are: 0 (Stable), 1 (Beta), 2 (Dev), and 3 (Canary)
include_obsolete: bool
Include obsolete packages in the package listing or package updates. For use with –list and –update only
no_https: bool
Force all connections to use HTTP rather than HTTPS
verbose: bool
Verbose output mode. Errors, warnings and informational messages are printed
proxy: Option<String>
Connect via a proxy of the given type: either http for high level protocols such as HTTP or FTP, or socks for a SOCKS (V4 or V5) proxy
proxy_host: Option<String>
IP or DNS address of the proxy to use
proxy_port: Option<String>
Proxy port number to connect to
Implementations
sourceimpl SdkManagerInstallCommand
impl SdkManagerInstallCommand
sourcepub fn list(&mut self, list: bool) -> &mut Self
pub fn list(&mut self, list: bool) -> &mut Self
List installed and available packages. Use the channel option to include a package from a channel up to and including channel_id. For example, specify the canary channel to list packages from all channels
sourcepub fn install(&mut self, install: Vec<String>) -> &mut Self
pub fn install(&mut self, install: Vec<String>) -> &mut Self
Install package. To see all available packages use –list. Example: crossbundle install sdkmanager “ndk;23.1.7779620”
sourcepub fn uninstall(&mut self, uninstall: String) -> &mut Self
pub fn uninstall(&mut self, uninstall: String) -> &mut Self
Android package that needs to be uninstalled
sourcepub fn preferred_tools(&mut self, preferred_tools: bool) -> &mut Self
pub fn preferred_tools(&mut self, preferred_tools: bool) -> &mut Self
Install all required tools for correct crossbundle work
sourcepub fn sdk_root(&mut self, sdk_root: PathBuf) -> &mut Self
pub fn sdk_root(&mut self, sdk_root: PathBuf) -> &mut Self
Use the specified SDK path instead of the SDK containing this tool
--sdk_root=path
sourcepub fn channel(&mut self, channel: u32) -> &mut Self
pub fn channel(&mut self, channel: u32) -> &mut Self
Include packages in channels up to and including channel_id. Available channels are: 0 (Stable), 1 (Beta), 2 (Dev), and 3 (Canary).
--channel=channel_id
sourcepub fn include_obsolete(&mut self, include_obsolete: bool) -> &mut Self
pub fn include_obsolete(&mut self, include_obsolete: bool) -> &mut Self
Include obsolete packages in the package listing or package updates. For use with –list and –update only.
sourcepub fn no_https(&mut self, no_https: bool) -> &mut Self
pub fn no_https(&mut self, no_https: bool) -> &mut Self
Force all connections to use HTTP rather than HTTPS.
sourcepub fn verbose(&mut self, verbose: bool) -> &mut Self
pub fn verbose(&mut self, verbose: bool) -> &mut Self
Verbose output mode. Errors, warnings and informational messages are printed.
sourcepub fn proxy(&mut self, proxy: String) -> &mut Self
pub fn proxy(&mut self, proxy: String) -> &mut Self
Connect via a proxy of the given type: either http for high level protocols such as HTTP or FTP, or socks for a SOCKS (V4 or V5) proxy. ```sh –proxy={http | socks}
sourcepub fn proxy_host(&mut self, proxy_host: String) -> &mut Self
pub fn proxy_host(&mut self, proxy_host: String) -> &mut Self
IP or DNS address of the proxy to use.
--proxy_host={IP_address | DNS_address}
sourcepub fn proxy_port(&mut self, proxy_port: String) -> &mut Self
pub fn proxy_port(&mut self, proxy_port: String) -> &mut Self
Proxy port number to connect to.
--proxy_port=port_number
sourcepub fn run(&self, _config: &Config) -> Result<()>
pub fn run(&self, _config: &Config) -> Result<()>
Run sdkmanager command with specified flags and options
pub fn sdkmanager_command(
&self,
sdkmanager_path: &Path,
sdk_root: &Path
) -> Result<()>
Trait Implementations
sourceimpl Args for SdkManagerInstallCommand
impl Args for SdkManagerInstallCommand
sourceimpl Clone for SdkManagerInstallCommand
impl Clone for SdkManagerInstallCommand
sourcefn clone(&self) -> SdkManagerInstallCommand
fn clone(&self) -> SdkManagerInstallCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl CommandFactory for SdkManagerInstallCommand
impl CommandFactory for SdkManagerInstallCommand
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for SdkManagerInstallCommand
impl Debug for SdkManagerInstallCommand
sourceimpl Default for SdkManagerInstallCommand
impl Default for SdkManagerInstallCommand
sourcefn default() -> SdkManagerInstallCommand
fn default() -> SdkManagerInstallCommand
Returns the “default value” for a type. Read more
sourceimpl FromArgMatches for SdkManagerInstallCommand
impl FromArgMatches for SdkManagerInstallCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourcefn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourceimpl Parser for SdkManagerInstallCommand
impl Parser for SdkManagerInstallCommand
sourcefn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for SdkManagerInstallCommand
impl Send for SdkManagerInstallCommand
impl Sync for SdkManagerInstallCommand
impl Unpin for SdkManagerInstallCommand
impl UnwindSafe for SdkManagerInstallCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more