Author SHA1 Message Date
Stevan Freeborn 487183ef1f chore(release): 0.2.0 [skip ci] 2025-08-21 03:18:07 +00:00
Stevan Freeborn 708b97a5c0 Merge pull request #8 from StevanFreeborn/stevanfreeborn/feat/5-display-location-of-shorts
feat: display location of output with link inside panel
2025-08-20 22:17:47 -05:00
Stevan Freeborn 57e95b2ea1 feat: display location of output with link inside panel 2025-08-20 22:17:06 -05:00
3 changed files with 21 additions and 15 deletions
+7
View File
@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [versionize](https://github.com/versionize/versionize) for commit guidelines.
<a name="0.2.0"></a>
## [0.2.0](https://www.github.com/StevanFreeborn/stream-shorts/releases/tag/v0.2.0) (2025-08-21)
### Features
* display location of output with link inside panel ([57e95b2](https://www.github.com/StevanFreeborn/stream-shorts/commit/57e95b2ea19ea97019df70bd7a5414984faaa1c7))
<a name="0.1.0"></a>
## [0.1.0](https://www.github.com/StevanFreeborn/stream-shorts/releases/tag/v0.1.0) (2025-08-21)
@@ -71,10 +71,7 @@ internal sealed class DefaultCommand(
await _console.Status()
.Spinner(Spinner.Known.Dots)
.StartAsync("Extracting audio...", async _ =>
{
audioStream = await _audioExtractor.ExtractMp3FromMp4Async(videoStream);
});
.StartAsync("Extracting audio...", async _ => audioStream = await _audioExtractor.ExtractMp3FromMp4Async(videoStream));
if (audioStream is null)
{
@@ -102,10 +99,8 @@ internal sealed class DefaultCommand(
var now = _timeProvider.GetUtcNow();
var inputFileName = _fileSystem.Path.GetFileNameWithoutExtension(settings.Stream);
var outputDirectoryPath = _fileSystem.Path.Combine(
AppContext.BaseDirectory,
$"{now:yyyy_MM_dd_HH_mm_ss}_{inputFileName}"
);
var outputDirectory = $"{now:yyyy_MM_dd_HH_mm_ss}_{inputFileName}";
var outputDirectoryPath = _fileSystem.Path.Combine(AppContext.BaseDirectory, outputDirectory);
_fileSystem.Directory.CreateDirectory(outputDirectoryPath);
@@ -118,10 +113,7 @@ internal sealed class DefaultCommand(
await _console.Status()
.Spinner(Spinner.Known.Dots)
.StartAsync("Analyzing transcript...", async _ =>
{
analysis = await _transcriptAnalyzer.AnalyzeAsync(transcriptionSegments);
});
.StartAsync("Analyzing transcript...", async _ => analysis = await _transcriptAnalyzer.AnalyzeAsync(transcriptionSegments));
if (analysis is null)
{
@@ -149,14 +141,21 @@ internal sealed class DefaultCommand(
}
});
_console.MarkupLine($"[blue]Shorts created[/] [green]successfully![/]");
var directoryUri = new Uri(outputDirectoryPath).AbsoluteUri;
var panel = new Panel($"[blue link={directoryUri}]{outputDirectory}[/]")
{
Header = new PanelHeader($"[blue]Shorts created[/] [green]successfully![/]")
};
return 0;
_console.Write(panel);
return (int)ExitCode.SuccessFullyProcessedStream;
}
private enum ExitCode
{
FailedToExtractAudio,
FailedToAnalyzeTranscript,
SuccessFullyProcessedStream,
}
}
@@ -4,7 +4,7 @@
<AssemblyTitle>StreamShorts.Console</AssemblyTitle>
<Product>StreamShorts.Console</Product>
<Description>A command-line interface for StreamShorts</Description>
<Version>0.1.0</Version>
<Version>0.2.0</Version>
<Authors>Stevan Freeborn</Authors>
<OutputType>Exe</OutputType>
<PublishSingleFile>true</PublishSingleFile>