aboutsummaryrefslogtreecommitdiffstats
path: root/crates/daemon/src/aclient/database
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-20 17:54:34 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-20 17:54:34 +0200
commit6bd2b80be51a8623640fbd77afa1da09289e40cc (patch)
tree8fa76fc78e27a4f3d6f57af07805a83e9877f0ad /crates/daemon/src/aclient/database
parentchore: Commit (diff)
downloadatuin-6bd2b80be51a8623640fbd77afa1da09289e40cc.zip
chore: All compiles
Diffstat (limited to 'crates/daemon/src/aclient/database')
-rw-r--r--crates/daemon/src/aclient/database/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/daemon/src/aclient/database/mod.rs b/crates/daemon/src/aclient/database/mod.rs
index 36049f80..5e25a0e9 100644
--- a/crates/daemon/src/aclient/database/mod.rs
+++ b/crates/daemon/src/aclient/database/mod.rs
@@ -51,10 +51,9 @@ pub(crate) struct OptFilters {
pub(crate) include_duplicates: bool,
}
-pub(crate) async fn current_context() -> eyre::Result<Context> {
- let session = 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.")
- })?;
+pub(crate) async fn current_context(session: String) -> eyre::Result<Context> {
+ // TODO(@bpeetz): More of this needs to be moved to the client <2026-07-20>
+
let hostname = get_host_user();
let cwd = utils::get_current_dir();
let host_id = Settings::host_id().await?;