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 | |
| parent | chore: Commit (diff) | |
| download | atuin-4930f050c56660c245e5976979babb66aea7bfd5.zip | |
chore: Last big refactoring
Diffstat (limited to '')
| -rw-r--r-- | crates/client/Cargo.toml | 48 | ||||
| -rw-r--r-- | crates/client/src/atuin_client/mod.rs | 28 |
2 files changed, 38 insertions, 38 deletions
diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml index 4387a1c1..93599cd6 100644 --- a/crates/client/Cargo.toml +++ b/crates/client/Cargo.toml @@ -12,31 +12,31 @@ homepage = { workspace = true } repository = { workspace = true } [dependencies] -clap = { version = "4.5.7", features = ["derive"] } -clap_complete = "4.5.8" -clap_complete_nushell = "4.5.4" -colored = "2.0.4" -config = { version = "0.15.8", default-features = false, features = ["toml"] } -crossterm = {version = "0.29.0", features = ["use-dev-tty", "serde"] } -eyre = "0.6" -fs-err = "3.1" -interim = { version = "0.2.0", features = ["time_0_3"] } -log = "0.4" -regex = "1.10.5" -rustix = { version = "1.1.4", features = ["process", "fs"] } -serde = { version = "1.0.202", features = ["derive"] } -serde_json = "1.0.119" -serde_regex = "1.1.0" -serde_with = "3.8.1" -shellexpand = "3" -time = { version = "0.3.47", features = [ "serde-human-readable", "macros", "local-offset", "macros", "formatting", "parsing"] } -tokio = { version = "1", features = ["full"] } -toml_edit = "0.25.4" -tracing = "0.1" -tracing-subscriber = { version = "0.3", features = ["ansi", "fmt", "registry", "env-filter", "json"] } +clap = { workspace = true } +clap_complete = { workspace = true } +clap_complete_nushell = { workspace = true } +colored = { workspace = true } +config = { workspace = true } +crossterm = { workspace = true } +eyre = { workspace = true } +fs-err = { workspace = true } +interim = { workspace = true } +log = { workspace = true } +regex = { workspace = true } +rustix = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +serde_regex = { workspace = true } +serde_with = { workspace = true } +shellexpand = { workspace = true } +time = { workspace = true } +tokio = { workspace = true } +toml_edit = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } turtle = { workspace = true } -turtle-common = {workspace = true} -unicode-segmentation = "1.11.0" +turtle-common = { workspace = true } +unicode-segmentation = { workspace = true } [dev-dependencies] 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(), +// }) +// } |
