Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cee6c60b8 |
No files matched your search
+3
-1
@@ -3,6 +3,7 @@
|
||||
use crate::core::config;
|
||||
use crate::core::tracking;
|
||||
use crate::core::utils::{exit_code_from_output, exit_code_from_status, resolved_command};
|
||||
use std::process::Stdio;
|
||||
use anyhow::{Context, Result};
|
||||
use std::ffi::OsString;
|
||||
use std::process::Command;
|
||||
@@ -908,6 +909,7 @@ fn run_commit(args: &[String], verbose: u8, global_args: &[String]) -> Result<i3
|
||||
}
|
||||
|
||||
let output = build_commit_command(args, global_args)
|
||||
.stdin(Stdio::inherit())
|
||||
.output()
|
||||
.context("Failed to run git commit")?;
|
||||
|
||||
@@ -972,7 +974,7 @@ fn run_push(args: &[String], verbose: u8, global_args: &[String]) -> Result<i32>
|
||||
cmd.arg(arg);
|
||||
}
|
||||
|
||||
let output = cmd.output().context("Failed to run git push")?;
|
||||
let output = cmd.stdin(Stdio::inherit()).output().context("Failed to run git push")?;
|
||||
|
||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
|
||||
@@ -11,6 +11,7 @@ use super::constants::{
|
||||
REWRITE_HOOK_FILE, SETTINGS_JSON,
|
||||
};
|
||||
use super::integrity;
|
||||
use crate::core::config;
|
||||
|
||||
// Embedded hook script (guards before set -euo pipefail)
|
||||
const REWRITE_HOOK: &str = include_str!("../../hooks/claude/rtk-rewrite.sh");
|
||||
@@ -292,6 +293,14 @@ pub fn run(
|
||||
}
|
||||
|
||||
println!();
|
||||
let env_disabled = std::env::var("RTK_TELEMETRY_DISABLED").unwrap_or_default() == "1";
|
||||
let config_disabled = matches!(config::telemetry_enabled(), Some(false));
|
||||
if env_disabled || config_disabled {
|
||||
println!(" [info] Anonymous telemetry is disabled");
|
||||
} else {
|
||||
println!(" [info] Anonymous telemetry is enabled by default (opt-out: RTK_TELEMETRY_DISABLED=1)");
|
||||
}
|
||||
println!(" [info] See: https://github.com/rtk-ai/rtk#privacy--telemetry");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user