MCPcopy 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
69pub fn try_get_editor() -> Result<String, std::env::VarError> {
70 Env::new().get(EDITOR)
71}
72
73/// Get terminal type
74pub fn get_term() -> Option<String> {

Callers 1

executeMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected