mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
Swapped out to_string_lossy with display for user facing text (#5666)
Signed-off-by: Vincent Huang <vhuang@squareup.com>
This commit is contained in:
@@ -1142,7 +1142,7 @@ pub async fn cli() -> anyhow::Result<()> {
|
||||
.and_then(|rf| {
|
||||
goose::recipe::template_recipe::parse_recipe_content(
|
||||
&rf.content,
|
||||
Some(rf.parent_dir.to_string_lossy().to_string()),
|
||||
Some(rf.parent_dir.display().to_string()),
|
||||
)
|
||||
.ok()
|
||||
.map(|(r, _)| r.version)
|
||||
|
||||
@@ -42,7 +42,7 @@ pub fn list_available_recipes() -> Result<Vec<RecipeInfo>> {
|
||||
RecipeInfo {
|
||||
name,
|
||||
source: RecipeSource::Local,
|
||||
path: path.to_string_lossy().to_string(),
|
||||
path: path.display().to_string(),
|
||||
title: Some(recipe.title),
|
||||
description: Some(recipe.description),
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ pub fn load_local_recipe_file(recipe_name: &str) -> Result<RecipeFile> {
|
||||
|
||||
let search_dirs_str = search_dirs
|
||||
.iter()
|
||||
.map(|p| p.to_string_lossy())
|
||||
.map(|p| p.display().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(":");
|
||||
Err(anyhow!(
|
||||
|
||||
Reference in New Issue
Block a user