pub fn prompt_service_for_cwd() -> Result<PromptService>Expand description
Creates a PromptService for the current working directory.
This is a convenience function for CLI commands that operate on the current directory.
§Errors
Returns an error if the current working directory cannot be determined.
§Example
ⓘ
use subcog::services::prompt_service_for_cwd;
let service = prompt_service_for_cwd()?;
let prompts = service.list(PromptFilter::new())?;