Skip to content

Commit

Permalink
enable emoji rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidVeksler committed Aug 13, 2024
1 parent 9c09eb3 commit 26ce3ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
using System.Text;
using CodeContext;

Console.OutputEncoding = Encoding.UTF8;


var path = args.Length > 0 ? args[0] : MyAppsContext.GetUserInput("Enter the path to index: ");
var defaultOutput = Path.Combine(Path.GetDirectoryName(path), "context.txt");

Check warning on line 9 in Program.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.

Check warning on line 9 in Program.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.
var output = args.Length > 1 ? args[1] : MyAppsContext.GetUserInput($"Enter output file (default: {defaultOutput}): ");
Expand Down

0 comments on commit 26ce3ab

Please sign in to comment.