pub struct Pkg {
pub path: Option<String>,
pub offline: bool,
pub terse: bool,
pub output_directory: Option<String>,
pub locked: bool,
}Expand description
Package-related options.
Fields§
§path: Option<String>Path to the project, if not specified, current working directory will be used.
offline: boolOffline mode, prevents Forc from using the network when managing dependencies. Meaning it will only try to use previously downloaded dependencies.
terse: boolTerse mode. Limited warning and error output.
output_directory: Option<String>The directory in which the sway compiler output artifacts are placed.
By default, this is <project-root>/out.
locked: boolRequires that the Forc.lock file is up-to-date. If the lock file is missing, or it needs to be updated, Forc will exit with an error
Trait Implementations§
source§impl FromArgMatches for Pkg
impl FromArgMatches for Pkg
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn 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>
source§fn 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.source§fn 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.