aboutsummaryrefslogtreecommitdiffstats
path: root/crates/client/src/command/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--crates/client/src/command/mod.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/client/src/command/mod.rs b/crates/client/src/command/mod.rs
index 2e51a1e2..a2e75034 100644
--- a/crates/client/src/command/mod.rs
+++ b/crates/client/src/command/mod.rs
@@ -10,7 +10,6 @@ mod gen_completions;
#[derive(Subcommand)]
#[command(infer_subcommands = true)]
-#[expect(clippy::large_enum_variant)]
pub(crate) enum AtuinCmd {
#[command(flatten)]
Client(client::Cmd),
@@ -50,14 +49,6 @@ impl AtuinCmd {
}
}
-#[cfg(unix)]
-#[inline]
-fn is_truthy_env(name: &str) -> bool {
- std::env::var(name)
- .ok()
- .as_ref()
- .is_some_and(|value| !value.trim().is_empty() && value.trim() != "false")
-}
pub(crate) fn current_session() -> Result<String> {
std::env::var("ATUIN_SESSION").map_err(|_| {
eyre::eyre!("Failed to find $ATUIN_SESSION in the environment. Check that you have correctly set up your shell.")