MCPcopy Create free account
hub / github.com/alt-art/commit / select

Method select

src/commit_message/prompt.rs:41–46  ·  view source on GitHub ↗
(&self, prompt: &str, choices: Vec<Type>)

Source from the content-addressed store, hash-verified

39 }
40
41 pub fn select(&self, prompt: &str, choices: Vec<Type>) -> Result<String> {
42 let choice = Select::new(prompt, choices)
43 .with_render_config(self.config)
44 .prompt()?;
45 Ok(choice.name)
46 }
47
48 pub fn confirm(&self, prompt: &str) -> Result<bool> {
49 let confirm = Confirm::new(prompt)

Callers 2

type_choiceMethod · 0.80
scope_choiceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected