aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/store
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/store
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/store')
-rw-r--r--crates/turtle/src/command/client/store/pull.rs10
-rw-r--r--crates/turtle/src/command/client/store/purge.rs4
-rw-r--r--crates/turtle/src/command/client/store/push.rs12
-rw-r--r--crates/turtle/src/command/client/store/rebuild.rs6
-rw-r--r--crates/turtle/src/command/client/store/rekey.rs4
-rw-r--r--crates/turtle/src/command/client/store/verify.rs4
6 files changed, 20 insertions, 20 deletions
diff --git a/crates/turtle/src/command/client/store/pull.rs b/crates/turtle/src/command/client/store/pull.rs
index c9c9c379..6b709a64 100644
--- a/crates/turtle/src/command/client/store/pull.rs
+++ b/crates/turtle/src/command/client/store/pull.rs
@@ -11,24 +11,24 @@ use crate::atuin_client::{
};
#[derive(Args, Debug)]
-pub struct Pull {
+pub(crate) struct Pull {
/// The tag to push (eg, 'history'). Defaults to all tags
#[arg(long, short)]
- pub tag: Option<String>,
+ pub(crate) tag: Option<String>,
/// Force push records
/// This will first wipe the local store, and then download all records from the remote
#[arg(long, default_value = "false")]
- pub force: bool,
+ pub(crate) force: bool,
/// Page Size
/// How many records to download at once. Defaults to 100
#[arg(long, default_value = "100")]
- pub page: u64,
+ pub(crate) page: u64,
}
impl Pull {
- pub async fn run(
+ pub(crate) async fn run(
&self,
settings: &Settings,
store: SqliteStore,
diff --git a/crates/turtle/src/command/client/store/purge.rs b/crates/turtle/src/command/client/store/purge.rs
index f7996c4b..3ed55787 100644
--- a/crates/turtle/src/command/client/store/purge.rs
+++ b/crates/turtle/src/command/client/store/purge.rs
@@ -8,10 +8,10 @@ use crate::atuin_client::{
};
#[derive(Args, Debug)]
-pub struct Purge {}
+pub(crate) struct Purge {}
impl Purge {
- pub async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
+ pub(crate) async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
println!("Purging local records that cannot be decrypted");
let key = load_key(settings)?;
diff --git a/crates/turtle/src/command/client/store/push.rs b/crates/turtle/src/command/client/store/push.rs
index 724dfbef..042ad201 100644
--- a/crates/turtle/src/command/client/store/push.rs
+++ b/crates/turtle/src/command/client/store/push.rs
@@ -12,29 +12,29 @@ use crate::atuin_client::{
};
#[derive(Args, Debug)]
-pub struct Push {
+pub(crate) struct Push {
/// The tag to push (eg, 'history'). Defaults to all tags
#[arg(long, short)]
- pub tag: Option<String>,
+ pub(crate) tag: Option<String>,
/// The host to push, in the form of a UUID host ID. Defaults to the current host.
#[arg(long)]
- pub host: Option<Uuid>,
+ pub(crate) host: Option<Uuid>,
/// Force push records
/// This will override both host and tag, to be all hosts and all tags. First clear the remote store, then upload all of the
/// local store
#[arg(long, default_value = "false")]
- pub force: bool,
+ pub(crate) force: bool,
/// Page Size
/// How many records to upload at once. Defaults to 100
#[arg(long, default_value = "100")]
- pub page: u64,
+ pub(crate) page: u64,
}
impl Push {
- pub async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
+ pub(crate) async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
let host_id = Settings::host_id().await?;
if self.force {
diff --git a/crates/turtle/src/command/client/store/rebuild.rs b/crates/turtle/src/command/client/store/rebuild.rs
index 80e201c2..0959b74e 100644
--- a/crates/turtle/src/command/client/store/rebuild.rs
+++ b/crates/turtle/src/command/client/store/rebuild.rs
@@ -10,12 +10,12 @@ use crate::atuin_client::{
};
#[derive(Args, Debug)]
-pub struct Rebuild {
- pub tag: String,
+pub(crate) struct Rebuild {
+ pub(crate) tag: String,
}
impl Rebuild {
- pub async fn run(
+ pub(crate) async fn run(
&self,
settings: &Settings,
store: SqliteStore,
diff --git a/crates/turtle/src/command/client/store/rekey.rs b/crates/turtle/src/command/client/store/rekey.rs
index e63be447..3472222f 100644
--- a/crates/turtle/src/command/client/store/rekey.rs
+++ b/crates/turtle/src/command/client/store/rekey.rs
@@ -10,13 +10,13 @@ use crate::atuin_client::{
};
#[derive(Args, Debug)]
-pub struct Rekey {
+pub(crate) struct Rekey {
/// The new key to use for encryption. Omit for a randomly-generated key
key: Option<String>,
}
impl Rekey {
- pub async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
+ pub(crate) async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
let key = if let Some(key) = self.key.clone() {
println!("Re-encrypting store with specified key");
diff --git a/crates/turtle/src/command/client/store/verify.rs b/crates/turtle/src/command/client/store/verify.rs
index 5aa1dc70..e91addcf 100644
--- a/crates/turtle/src/command/client/store/verify.rs
+++ b/crates/turtle/src/command/client/store/verify.rs
@@ -8,10 +8,10 @@ use crate::atuin_client::{
};
#[derive(Args, Debug)]
-pub struct Verify {}
+pub(crate) struct Verify {}
impl Verify {
- pub async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
+ pub(crate) async fn run(&self, settings: &Settings, store: SqliteStore) -> Result<()> {
println!("Verifying local store can be decrypted with the current key");
let key = load_key(settings)?;