Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/amazon-q-developer-cli
/ try_get_editor
Function
try_get_editor
crates/chat-cli/src/util/env_var.rs:69–71 ·
view source on GitHub ↗
Try to get editor without fallback
()
Source
from the content-addressed store, hash-verified
67
68
/// Try to get editor without fallback
69
pub fn try_get_editor() -> Result<String, std::env::VarError> {
70
Env::new().get(EDITOR)
71
}
72
73
/// Get terminal type
74
pub fn get_term() -> Option<String> {
Callers
1
execute
Method · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected