mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
chore: update documentation
This commit is contained in:
@@ -4,8 +4,11 @@
|
||||
|
||||
use serde::{Serialize, Serializer};
|
||||
|
||||
/// Errors that can be returned from the CLI plugin's commands.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
/// Parsing the process arguments against the CLI definition in `tauri.conf.json` failed,
|
||||
/// e.g. because a required argument is missing or an unknown flag was passed.
|
||||
#[error("failed to parse arguments: {0}")]
|
||||
ParseCli(#[from] clap::Error),
|
||||
}
|
||||
@@ -19,4 +22,5 @@ impl Serialize for Error {
|
||||
}
|
||||
}
|
||||
|
||||
/// Alias for a [`std::result::Result`] with the error type [`Error`].
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
Reference in New Issue
Block a user