Updated command
This commit is contained in:
parent
ac3660be77
commit
c8649723f1
|
@ -6,14 +6,14 @@ use crate::utils::file_resolvers::resolve_configuration_file;
|
||||||
pub struct Arguments {
|
pub struct Arguments {
|
||||||
#[arg()]
|
#[arg()]
|
||||||
command: String,
|
command: String,
|
||||||
#[arg(default_value = ".")]
|
#[arg(long, default_value = ".")]
|
||||||
target: String,
|
entry: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run (arguments: &Arguments) -> Result<(), String> {
|
pub fn run (arguments: &Arguments) -> Result<(), String> {
|
||||||
let Arguments { target, command } = arguments;
|
let Arguments { entry, command } = arguments;
|
||||||
|
|
||||||
let target = resolve_configuration_file(target)?;
|
let target = resolve_configuration_file(entry)?;
|
||||||
|
|
||||||
let config = parse_config(&target)?;
|
let config = parse_config(&target)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue