diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 14:20:49 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 14:20:49 +0200 |
| commit | 199563550dd41c3dfb703bd3747604a8a03cdbc5 (patch) | |
| tree | 30cfa3e5539f782b7571091c742ee1c219e138fb /crates/turtle/src/command/client/init.rs | |
| parent | chore: Restore db migrations (diff) | |
| download | atuin-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/init.rs')
| -rw-r--r-- | crates/turtle/src/command/client/init.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/turtle/src/command/client/init.rs b/crates/turtle/src/command/client/init.rs index bf9747bb..776100cf 100644 --- a/crates/turtle/src/command/client/init.rs +++ b/crates/turtle/src/command/client/init.rs @@ -8,7 +8,7 @@ mod xonsh; mod zsh; #[derive(Parser, Debug)] -pub struct Cmd { +pub(crate) struct Cmd { shell: Shell, /// Disable the binding of CTRL-R to atuin @@ -27,7 +27,7 @@ pub struct Cmd { #[derive(Clone, Copy, ValueEnum, Debug)] #[value(rename_all = "lower")] #[expect(clippy::enum_variant_names, clippy::doc_markdown)] -pub enum Shell { +pub(crate) enum Shell { /// Zsh setup Zsh, /// Bash setup @@ -115,7 +115,7 @@ $env.config = ( } } - pub fn run(self, settings: &Settings) { + pub(crate) fn run(self, settings: &Settings) { if !settings.paths_ok() { eprintln!( "Atuin settings paths are broken. Disabling atuin shell hooks. Run `atuin doctor` to diagnose." |
