diff options
Diffstat (limited to 'crates/client/src/atuin_client/mod.rs')
| -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(), +// }) +// } |
