Escape markup in file paths for console output

Co-authored-by: StevanFreeborn <65925598+StevanFreeborn@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-09 23:44:31 +00:00
co-authored by StevanFreeborn
parent cfe0878bcd
commit f2fdc53222
2 changed files with 23 additions and 2 deletions
@@ -68,7 +68,7 @@ internal sealed class DefaultCommand(
public override async Task<int> ExecuteAsync(CommandContext context, Settings settings)
{
_console.MarkupLine($"[blue]Processing stream:[/] {settings.Stream}");
_console.MarkupLine($"[blue]Processing stream:[/] {settings.Stream.EscapeMarkup()}");
var videoStream = _fileSystem.File.OpenRead(settings.Stream);
Stream? audioStream = null;
@@ -147,7 +147,7 @@ internal sealed class DefaultCommand(
});
var directoryUri = new Uri(outputDirectoryPath).AbsoluteUri;
var panel = new Panel($"[blue link={directoryUri}]{artifactsOutputDirectory}[/]")
var panel = new Panel($"[blue link={directoryUri}]{artifactsOutputDirectory.EscapeMarkup()}[/]")
{
Header = new PanelHeader($"[blue]Shorts created[/] [green]successfully![/]")
};