fix(main): Fix formatting of queue name in ls-output
This commit is contained in:
parent
cfbfe1a355
commit
ade52d2423
1 changed files with 6 additions and 3 deletions
|
@ -25,8 +25,11 @@ fn run_ls() {
|
|||
content
|
||||
};
|
||||
|
||||
let queue_name = path.components().last().unwrap().as_os_str();
|
||||
println!("{:?}: {}", queue_name, status)
|
||||
let queue_name = path.components().last().unwrap()
|
||||
.as_os_str()
|
||||
.to_string_lossy();
|
||||
|
||||
println!("/{}: {}", queue_name, status)
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -195,7 +198,7 @@ fn main() {
|
|||
|
||||
let matches = App::new("mq")
|
||||
.setting(AppSettings::SubcommandRequiredElseHelp)
|
||||
.version("0.0.1")
|
||||
.version("1.0.0")
|
||||
.about("Administrate and inspect POSIX message queues")
|
||||
.subcommand(ls)
|
||||
.subcommand(inspect)
|
||||
|
|
Loading…
Reference in a new issue