aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src
diff options
context:
space:
mode:
authorMichelle Tilley <michelle@michelletilley.net>2026-03-02 09:12:20 -0800
committerGitHub <noreply@github.com>2026-03-02 18:12:20 +0100
commit4c9180c2755b6457113e8d6a7566c32cf1ad547a (patch)
tree8136d818898232d811dbc452bb52a16c38b8f8e3 /crates/atuin-client/src
parentfix: regen cargo dist (diff)
downloadatuin-4c9180c2755b6457113e8d6a7566c32cf1ad547a.zip
chore: Move atuin ai subcommand into core binary (#3212)
Diffstat (limited to 'crates/atuin-client/src')
-rw-r--r--crates/atuin-client/src/settings.rs26
1 files changed, 10 insertions, 16 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs
index 8e874832..bfa94f6e 100644
--- a/crates/atuin-client/src/settings.rs
+++ b/crates/atuin-client/src/settings.rs
@@ -562,11 +562,11 @@ pub struct Logs {
pub struct Ai {
/// The address of the Atuin AI endpoint. Used for AI features like command generation.
/// Only necessary for custom AI endpoints.
- pub ai_endpoint: Option<String>,
+ pub endpoint: Option<String>,
/// The API token for the Atuin AI endpoint. Used for AI features like command generation.
/// Only necessary for custom AI endpoints.
- pub ai_api_token: Option<String>,
+ pub api_token: Option<String>,
/// Whether or not to send the current working directory to the AI endpoint.
pub send_cwd: bool,
@@ -691,27 +691,21 @@ impl Logs {
}
/// Returns the full path for the search log file.
- /// If `file` is an absolute path, returns it directly.
- /// Otherwise, joins it with `dir`.
pub fn search_path(&self) -> PathBuf {
let path = PathBuf::from(&self.search.file);
- if path.is_absolute() {
- path
- } else {
- PathBuf::from(&self.dir).join(path)
- }
+ PathBuf::from(&self.dir).join(path)
}
/// Returns the full path for the daemon log file.
- /// If `file` is an absolute path, returns it directly.
- /// Otherwise, joins it with `dir`.
pub fn daemon_path(&self) -> PathBuf {
let path = PathBuf::from(&self.daemon.file);
- if path.is_absolute() {
- path
- } else {
- PathBuf::from(&self.dir).join(path)
- }
+ PathBuf::from(&self.dir).join(path)
+ }
+
+ /// Returns the full path for the AI log file.
+ pub fn ai_path(&self) -> PathBuf {
+ let path = PathBuf::from(&self.ai.file);
+ PathBuf::from(&self.dir).join(path)
}
}