Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b5a65fc92 | ||
|
|
ecc676bff1 | ||
|
|
d560909f16 | ||
|
|
51f5359202 | ||
|
|
022798d11b |
@@ -3,6 +3,9 @@
|
||||
##
|
||||
## Get latest from `dotnet new gitignore`
|
||||
|
||||
# published files
|
||||
dist/
|
||||
|
||||
# dotenv files
|
||||
.env
|
||||
appsettings*.json
|
||||
|
||||
@@ -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.1.0"></a>
|
||||
## [0.1.0](https://www.github.com/StevanFreeborn/stream-shorts/releases/tag/v0.1.0) (2025-08-21)
|
||||
|
||||
### Features
|
||||
|
||||
* fallback to static AnsiConsole if exception occurs before registered in DI container ([d560909](https://www.github.com/StevanFreeborn/stream-shorts/commit/d560909f16f0a97b399f8139f94b6f2fe07cf033))
|
||||
|
||||
<a name="0.0.0"></a>
|
||||
## [0.0.0](https://www.github.com/StevanFreeborn/stream-shorts/releases/tag/v0.0.0) (2025-08-20)
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@ internal static class HostBuilderExtensions
|
||||
app.Configure(static c =>
|
||||
c.SetExceptionHandler(static (ex, resolver) =>
|
||||
{
|
||||
var console = resolver?.Resolve(typeof(IAnsiConsole)) as IAnsiConsole;
|
||||
console?.MarkupLine($"[red]An error occurred while executing the command:[/]");
|
||||
console?.WriteException(ex, ExceptionFormats.ShortenEverything);
|
||||
var console = resolver?.Resolve(typeof(IAnsiConsole)) as IAnsiConsole ?? AnsiConsole.Console;
|
||||
console.MarkupLine($"[red]An error occurred while executing the command:[/]");
|
||||
console.WriteException(ex, ExceptionFormats.ShortenEverything);
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ try
|
||||
services.AddSingleton(TimeProvider.System);
|
||||
services.AddSingleton<IAudioExtractor, AudioExtractor>();
|
||||
services.AddSingleton<ITranscriber, WhisperTranscriber>();
|
||||
services.AddSingleton<ITranscriptAnalyzer, GeminiAnalyzer>(sp =>
|
||||
services.AddSingleton<ITranscriptAnalyzer, GeminiAnalyzer>(static sp =>
|
||||
{
|
||||
const string modelOptionName = "Model";
|
||||
const string keyOptionName = "ApiKey";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<AssemblyTitle>StreamShorts.Console</AssemblyTitle>
|
||||
<Product>StreamShorts.Console</Product>
|
||||
<Description>A command-line interface for StreamShorts</Description>
|
||||
<Version>0.0.0</Version>
|
||||
<Version>0.1.0</Version>
|
||||
<Authors>Stevan Freeborn</Authors>
|
||||
<OutputType>Exe</OutputType>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
|
||||
Reference in New Issue
Block a user