refactor code

This commit is contained in:
Denis-Cosmin NUTIU 2024-12-30 13:07:24 +02:00
parent 5c86d4e899
commit 0d931a143e
4 changed files with 10 additions and 1 deletions

View file

@ -1 +1 @@
mod token;

View file

@ -18,4 +18,12 @@ pub struct CliArgs {
/// The current consumer name /// The current consumer name
#[arg(short = 'n', long)] #[arg(short = 'n', long)]
pub redis_consumer_name: String, pub redis_consumer_name: String,
/// The bluesky bot user's handle.
#[arg(short = 'h', long)]
pub bluesky_handle: String,
/// The bluesky bot user's password.
#[arg(short = 'p', long)]
pub bluesky_password: String
} }

View file

@ -11,6 +11,7 @@ use std::thread;
mod bluesky; mod bluesky;
mod cli; mod cli;
mod token;
//noinspection DuplicatedCode //noinspection DuplicatedCode
/// Sets up a signal handler in a separate thread to handle SIGINT and SIGTERM signals. /// Sets up a signal handler in a separate thread to handle SIGINT and SIGTERM signals.