shorten list build
This commit is contained in:
parent
edb33ebeec
commit
db3e0f846e
1 changed files with 1 additions and 4 deletions
|
|
@ -11,10 +11,7 @@ impl ListCommand {
|
||||||
|
|
||||||
pub fn build(self) -> super::Command {
|
pub fn build(self) -> super::Command {
|
||||||
let uuids = self.uuids.unwrap_or(false);
|
let uuids = self.uuids.unwrap_or(false);
|
||||||
let mut s = format!("list");
|
let s = format!("list {}", if uuids { "uuids" } else {""} );
|
||||||
if uuids {
|
|
||||||
s.push_str(" uuids");
|
|
||||||
}
|
|
||||||
super::Command(s)
|
super::Command(s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue