aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/account.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-11 14:20:49 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-11 14:20:49 +0200
commit199563550dd41c3dfb703bd3747604a8a03cdbc5 (patch)
tree30cfa3e5539f782b7571091c742ee1c219e138fb /crates/turtle/src/command/client/account.rs
parentchore: Restore db migrations (diff)
downloadatuin-199563550dd41c3dfb703bd3747604a8a03cdbc5.zip
chore: Remove all `pub`s
They will not be marked by rustc/cargo as unused, and as atuin doesn't expose an API all of them _should_ be `pub(crate)`
Diffstat (limited to 'crates/turtle/src/command/client/account.rs')
-rw-r--r--crates/turtle/src/command/client/account.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/turtle/src/command/client/account.rs b/crates/turtle/src/command/client/account.rs
index 898f1ac4..f2ceb10b 100644
--- a/crates/turtle/src/command/client/account.rs
+++ b/crates/turtle/src/command/client/account.rs
@@ -4,20 +4,20 @@ use eyre::Result;
use crate::atuin_client::record::sqlite_store::SqliteStore;
use crate::atuin_client::settings::Settings;
-pub mod change_password;
-pub mod delete;
-pub mod login;
-pub mod logout;
-pub mod register;
+pub(crate) mod change_password;
+pub(crate) mod delete;
+pub(crate) mod login;
+pub(crate) mod logout;
+pub(crate) mod register;
#[derive(Args, Debug)]
-pub struct Cmd {
+pub(crate) struct Cmd {
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand, Debug)]
-pub enum Commands {
+pub(crate) enum Commands {
/// Login to the configured server
Login(login::Cmd),
@@ -35,7 +35,7 @@ pub enum Commands {
}
impl Cmd {
- pub async fn run(self, settings: Settings, store: SqliteStore) -> Result<()> {
+ pub(crate) async fn run(self, settings: Settings, store: SqliteStore) -> Result<()> {
match self.command {
Commands::Login(l) => l.run(&settings, &store).await,
Commands::Register(r) => r.run(&settings).await,