diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 23:44:15 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 23:44:15 +0200 |
| commit | 4930f050c56660c245e5976979babb66aea7bfd5 (patch) | |
| tree | 1a0cc823da65c4258f4434be98e92f814ae4fce2 /crates/client/src/atuin_client | |
| parent | chore: Commit (diff) | |
| download | atuin-4930f050c56660c245e5976979babb66aea7bfd5.zip | |
chore: Last big refactoring
Diffstat (limited to 'crates/client/src/atuin_client')
| -rw-r--r-- | crates/client/src/atuin_client/mod.rs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/crates/client/src/atuin_client/mod.rs b/crates/client/src/atuin_client/mod.rs index 3f36722f..ed9f57b6 100644 --- a/crates/client/src/atuin_client/mod.rs +++ b/crates/client/src/atuin_client/mod.rs @@ -1,16 +1,16 @@ pub(crate) mod settings; -pub async fn current_context(session: String) -> eyre::Result<Context> { - let hostname = get_host_user(); - let cwd = utils::get_current_dir(); - let host_id = Settings::host_id().await?; - let git_root = utils::in_git_repo(cwd.as_str()); - - Ok(Context { - session, - hostname, - cwd, - git_root, - host_id: host_id.0.as_simple().to_string(), - }) -} +// pub async fn current_context(session: String) -> eyre::Result<Context> { +// let hostname = get_host_user(); +// let cwd = utils::get_current_dir(); +// let host_id = Settings::host_id().await?; +// let git_root = utils::in_git_repo(cwd.as_str()); +// +// Ok(Context { +// session, +// hostname, +// cwd, +// git_root, +// host_id: host_id.0.as_simple().to_string(), +// }) +// } |
