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 {
|
||||
let uuids = self.uuids.unwrap_or(false);
|
||||
let mut s = format!("list");
|
||||
if uuids {
|
||||
s.push_str(" uuids");
|
||||
}
|
||||
let s = format!("list {}", if uuids { "uuids" } else {""} );
|
||||
super::Command(s)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue