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| {
|
.and_then(|rf| {
|
||||||
goose::recipe::template_recipe::parse_recipe_content(
|
goose::recipe::template_recipe::parse_recipe_content(
|
||||||
&rf.content,
|
&rf.content,
|
||||||
Some(rf.parent_dir.to_string_lossy().to_string()),
|
Some(rf.parent_dir.display().to_string()),
|
||||||
)
|
)
|
||||||
.ok()
|
.ok()
|
||||||
.map(|(r, _)| r.version)
|
.map(|(r, _)| r.version)
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ pub fn list_available_recipes() -> Result<Vec<RecipeInfo>> {
|
|||||||
RecipeInfo {
|
RecipeInfo {
|
||||||
name,
|
name,
|
||||||
source: RecipeSource::Local,
|
source: RecipeSource::Local,
|
||||||
path: path.to_string_lossy().to_string(),
|
path: path.display().to_string(),
|
||||||
title: Some(recipe.title),
|
title: Some(recipe.title),
|
||||||
description: Some(recipe.description),
|
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
|
let search_dirs_str = search_dirs
|
||||||
.iter()
|
.iter()
|
||||||
.map(|p| p.to_string_lossy())
|
.map(|p| p.display().to_string())
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join(":");
|
.join(":");
|
||||||
Err(anyhow!(
|
Err(anyhow!(
|
||||||
|
|||||||
Reference in New Issue
Block a user