mirror of
https://github.com/qwjyh/xdbm
synced 2025-04-20 11:45:50 +09:00
refactor: format
This commit is contained in:
parent
cad49e8d50
commit
f98ea1afec
3 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
//! CLI arguments
|
//! CLI arguments
|
||||||
|
|
||||||
use crate::path;
|
|
||||||
use crate::PathBuf;
|
use crate::PathBuf;
|
||||||
|
use crate::path;
|
||||||
use clap::Args;
|
use clap::Args;
|
||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use clap_verbosity_flag::Verbosity;
|
use clap_verbosity_flag::Verbosity;
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
//! Initialize xdbm for the device.
|
//! Initialize xdbm for the device.
|
||||||
|
|
||||||
use crate::backups::Backups;
|
use crate::backups::Backups;
|
||||||
use crate::storages::{Storages, STORAGESFILE};
|
use crate::storages::{STORAGESFILE, Storages};
|
||||||
use crate::{
|
use crate::{
|
||||||
add_and_commit, backups, full_status, get_devices, write_devices, Device, DEVICESFILE,
|
DEVICESFILE, Device, add_and_commit, backups,
|
||||||
|
devices::{get_devices, write_devices},
|
||||||
|
full_status,
|
||||||
};
|
};
|
||||||
use anyhow::{anyhow, Context, Ok, Result};
|
use anyhow::{Context, Ok, Result, anyhow};
|
||||||
use core::panic;
|
use core::panic;
|
||||||
use git2::{Cred, RemoteCallbacks, Repository};
|
use git2::{Cred, RemoteCallbacks, Repository};
|
||||||
use inquire::Password;
|
use inquire::Password;
|
||||||
|
|
|
@ -23,7 +23,7 @@ use std::path::{self, PathBuf};
|
||||||
use storages::Storages;
|
use storages::Storages;
|
||||||
|
|
||||||
use crate::cmd_args::{BackupSubCommands, Cli, Commands, StorageCommands};
|
use crate::cmd_args::{BackupSubCommands, Cli, Commands, StorageCommands};
|
||||||
use devices::{Device, DEVICESFILE, *};
|
use devices::{DEVICESFILE, Device};
|
||||||
|
|
||||||
mod backups;
|
mod backups;
|
||||||
mod cmd_args;
|
mod cmd_args;
|
||||||
|
|
Loading…
Add table
Reference in a new issue