mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 05:07:55 +08:00
fix typos
This commit is contained in:
@@ -35,7 +35,7 @@ pub struct AccountConfigureCommand {
|
||||
|
||||
impl AccountConfigureCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing account configure command");
|
||||
info!("executing configure account command");
|
||||
|
||||
let account = &self.account.name;
|
||||
let (_, account_config) = config.into_toml_account_config(Some(account))?;
|
||||
|
||||
@@ -21,7 +21,7 @@ pub struct AccountListCommand {
|
||||
|
||||
impl AccountListCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing account list command");
|
||||
info!("executing list accounts command");
|
||||
|
||||
let accounts: Accounts = config.accounts.iter().into();
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ pub struct AccountSyncCommand {
|
||||
|
||||
impl AccountSyncCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing account sync command");
|
||||
info!("executing sync account command");
|
||||
|
||||
let included_folders = HashSet::from_iter(self.include_folder);
|
||||
let excluded_folders = HashSet::from_iter(self.exclude_folder);
|
||||
|
||||
@@ -20,17 +20,12 @@ pub struct CompletionGenerateCommand {
|
||||
|
||||
impl CompletionGenerateCommand {
|
||||
pub async fn execute(self) -> Result<()> {
|
||||
info!("executing completion generate command");
|
||||
info!("executing generate completion command");
|
||||
|
||||
let mut cmd = Cli::command();
|
||||
let name = cmd.get_name().to_string();
|
||||
clap_complete::generate(self.shell, &mut cmd, name, &mut io::stdout());
|
||||
|
||||
info!(
|
||||
"Shell script successfully generated for shell {}!",
|
||||
self.shell
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ pub struct TemplateForwardCommand {
|
||||
|
||||
impl TemplateForwardCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing template forward command");
|
||||
info!("executing forward template command");
|
||||
|
||||
let folder = &self.folder.name;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ pub struct TemplateSaveCommand {
|
||||
|
||||
impl TemplateSaveCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing template save command");
|
||||
info!("executing save template command");
|
||||
|
||||
let folder = &self.folder.name;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ pub struct TemplateSendCommand {
|
||||
|
||||
impl TemplateSendCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing template send command");
|
||||
info!("executing send template command");
|
||||
|
||||
let (toml_account_config, account_config) = config.clone().into_account_configs(
|
||||
self.account.name.as_ref().map(String::as_str),
|
||||
|
||||
@@ -35,7 +35,7 @@ pub struct FolderDeleteCommand {
|
||||
|
||||
impl FolderDeleteCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer, config: &TomlConfig) -> Result<()> {
|
||||
info!("executing folder delete command");
|
||||
info!("executing delete folder command");
|
||||
|
||||
let folder = &self.folder.name;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ pub struct ManualGenerateCommand {
|
||||
|
||||
impl ManualGenerateCommand {
|
||||
pub async fn execute(self, printer: &mut impl Printer) -> Result<()> {
|
||||
info!("executing manual generate command");
|
||||
info!("executing generate manuals command");
|
||||
|
||||
let cmd = Cli::command();
|
||||
let cmd_name = cmd.get_name().to_string();
|
||||
|
||||
Reference in New Issue
Block a user