feat: Add repo announce command

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-05 19:55:53 +00:00
parent 273058fe3f
commit b444aeba0a
4 changed files with 167 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
use std::process::ExitCode;
use nostr::event::builder::Error as EventBuilderError;
use nostr_sdk::client::Error as ClientError;
pub type N34Result<T> = Result<T, N34Error>;
@@ -27,6 +28,12 @@ pub enum N34Error {
Client(#[from] ClientError),
#[error("Unable to locate the repository. The repository may not exists in the given relays")]
NotFoundRepo,
#[error("Failed building an event: {0}")]
EventBuilder(#[from] EventBuilderError),
#[error("Invalid repository id, it can't be empty and must be kebab-case")]
InvalidRepoId,
#[error("Bech32 error: {0}")]
Bech32(#[from] nostr::nips::nip19::Error),
}
impl N34Error {