mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-22 06:40:12 +09:00
fmt
This commit is contained in:
parent
b9bb207f35
commit
6e1619aa18
4 changed files with 4 additions and 8 deletions
|
@ -57,9 +57,7 @@ pub(crate) enum Commands {
|
||||||
Check {},
|
Check {},
|
||||||
|
|
||||||
/// Generate completion script.
|
/// Generate completion script.
|
||||||
Completion {
|
Completion { shell: clap_complete::Shell },
|
||||||
shell: clap_complete::Shell,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Args, Debug)]
|
#[derive(Args, Debug)]
|
||||||
|
|
|
@ -216,7 +216,7 @@ fn write_backups_list(
|
||||||
None => {
|
None => {
|
||||||
let style = Style::new().red();
|
let style = Style::new().red();
|
||||||
(style.apply_to("---".to_string()), style)
|
(style.apply_to("---".to_string()), style)
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
if !longprint {
|
if !longprint {
|
||||||
writeln!(
|
writeln!(
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//! Manipulates storages.
|
//! Manipulates storages.
|
||||||
|
|
||||||
use console::{style, Style, StyledObject};
|
|
||||||
use crate::devices;
|
use crate::devices;
|
||||||
use crate::storages::{
|
use crate::storages::{
|
||||||
directory::Directory, online_storage::OnlineStorage,
|
directory::Directory, online_storage::OnlineStorage,
|
||||||
|
@ -8,6 +7,7 @@ use crate::storages::{
|
||||||
};
|
};
|
||||||
use anyhow::{anyhow, Context, Result};
|
use anyhow::{anyhow, Context, Result};
|
||||||
use clap::ValueEnum;
|
use clap::ValueEnum;
|
||||||
|
use console::{style, Style, StyledObject};
|
||||||
use core::panic;
|
use core::panic;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{collections::BTreeMap, fmt, fs, io, path};
|
use std::{collections::BTreeMap, fmt, fs, io, path};
|
||||||
|
|
|
@ -180,9 +180,7 @@ mod test {
|
||||||
local_infos,
|
local_infos,
|
||||||
);
|
);
|
||||||
let mut storages = Storages::new();
|
let mut storages = Storages::new();
|
||||||
storages
|
storages.add(storages::Storage::Physical(physical)).unwrap();
|
||||||
.add(storages::Storage::Physical(physical))
|
|
||||||
.unwrap();
|
|
||||||
storages.add(Storage::SubDirectory(directory)).unwrap();
|
storages.add(Storage::SubDirectory(directory)).unwrap();
|
||||||
// assert_eq!(directory.name(), "test_name");
|
// assert_eq!(directory.name(), "test_name");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
Loading…
Reference in a new issue