-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d8bd85
commit 2636471
Showing
44 changed files
with
1,145 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,84 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
Console.WriteLine("Hello, World!"); | ||
using System; | ||
using Spectre.Console; | ||
|
||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
while (true) | ||
{ | ||
AnsiConsole.Clear(); | ||
PrintHeader(); | ||
PrintMenu(); | ||
var choice = PromptInput(); | ||
ProcessChoice(choice); | ||
} | ||
} | ||
|
||
static void PrintHeader() | ||
{ | ||
AnsiConsole.WriteLine(); | ||
AnsiConsole.WriteLine("[bold underline green]Guitar Tuner[/]"); | ||
AnsiConsole.WriteLine(); | ||
} | ||
|
||
static void PrintMenu() | ||
{ | ||
AnsiConsole.WriteLine("[yellow]Select an option:[/]"); | ||
AnsiConsole.WriteLine(" [yellow]1[/] - Tune Guitar"); | ||
AnsiConsole.WriteLine(" [yellow]2[/] - Read License"); | ||
AnsiConsole.WriteLine(" [yellow]3[/] - Exit"); | ||
AnsiConsole.WriteLine(); | ||
} | ||
|
||
static string PromptInput() | ||
{ | ||
return AnsiConsole.Prompt(new TextPrompt<string>("Enter your choice:") | ||
.InvalidChoiceMessage("[red]Invalid choice[/]") | ||
.DefaultValue("1")); | ||
} | ||
|
||
static void ProcessChoice(string choice) | ||
{ | ||
switch (choice.ToLower()) | ||
{ | ||
case "1": | ||
TuneGuitar(); | ||
break; | ||
case "2": | ||
ReadLicense(); | ||
break; | ||
case "3": | ||
Environment.Exit(0); | ||
break; | ||
default: | ||
AnsiConsole.WriteLine("[red]Invalid choice[/]"); | ||
break; | ||
} | ||
} | ||
|
||
static void TuneGuitar() | ||
{ | ||
// Implementare la logica per l'accordatura della chitarra | ||
AnsiConsole.WriteLine("[yellow]Tuning guitar...[/]"); | ||
// Simulazione di attesa per 2 secondi | ||
System.Threading.Thread.Sleep(2000); | ||
AnsiConsole.WriteLine("[green]Guitar tuned successfully![/]"); | ||
AnsiConsole.WriteLine(); | ||
AnsiConsole.WriteLine("[yellow]Press any key to continue...[/]"); | ||
Console.ReadKey(); | ||
} | ||
|
||
static void ReadLicense() | ||
{ | ||
// Leggere il testo della licenza dal file o da una risorsa | ||
string licenseText = "License text goes here..."; | ||
AnsiConsole.WriteLine(); | ||
AnsiConsole.WriteLine("[bold underline]License[/]"); | ||
AnsiConsole.WriteLine(licenseText); | ||
AnsiConsole.WriteLine(); | ||
AnsiConsole.WriteLine("[yellow]Press any key to continue...[/]"); | ||
Console.ReadKey(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
{ | ||
"runtimeTarget": { | ||
"name": ".NETCoreApp,Version=v8.0", | ||
"signature": "" | ||
}, | ||
"compilationOptions": {}, | ||
"targets": { | ||
".NETCoreApp,Version=v8.0": { | ||
"accorda-cli/1.0.0": { | ||
"dependencies": { | ||
"NAudio": "2.2.1", | ||
"Spectre.Console": "0.48.0", | ||
"Spectre.Console.Cli": "0.48.0", | ||
"Spectre.Console.Json": "0.48.0", | ||
"Spectre.Console.Testing": "0.48.0" | ||
}, | ||
"runtime": { | ||
"accorda-cli.dll": {} | ||
} | ||
}, | ||
"Microsoft.NETCore.Platforms/3.1.0": {}, | ||
"Microsoft.Win32.Registry/4.7.0": { | ||
"dependencies": { | ||
"System.Security.AccessControl": "4.7.0", | ||
"System.Security.Principal.Windows": "4.7.0" | ||
} | ||
}, | ||
"NAudio/2.2.1": { | ||
"dependencies": { | ||
"NAudio.Asio": "2.2.1", | ||
"NAudio.Core": "2.2.1", | ||
"NAudio.Midi": "2.2.1", | ||
"NAudio.Wasapi": "2.2.1", | ||
"NAudio.WinMM": "2.2.1" | ||
}, | ||
"runtime": { | ||
"lib/net6.0/NAudio.dll": { | ||
"assemblyVersion": "2.2.1.0", | ||
"fileVersion": "2.2.1.0" | ||
} | ||
} | ||
}, | ||
"NAudio.Asio/2.2.1": { | ||
"dependencies": { | ||
"Microsoft.Win32.Registry": "4.7.0", | ||
"NAudio.Core": "2.2.1" | ||
}, | ||
"runtime": { | ||
"lib/netstandard2.0/NAudio.Asio.dll": { | ||
"assemblyVersion": "2.2.1.0", | ||
"fileVersion": "2.2.1.0" | ||
} | ||
} | ||
}, | ||
"NAudio.Core/2.2.1": { | ||
"runtime": { | ||
"lib/netstandard2.0/NAudio.Core.dll": { | ||
"assemblyVersion": "2.2.1.0", | ||
"fileVersion": "2.2.1.0" | ||
} | ||
} | ||
}, | ||
"NAudio.Midi/2.2.1": { | ||
"dependencies": { | ||
"NAudio.Core": "2.2.1" | ||
}, | ||
"runtime": { | ||
"lib/netstandard2.0/NAudio.Midi.dll": { | ||
"assemblyVersion": "2.2.1.0", | ||
"fileVersion": "2.2.1.0" | ||
} | ||
} | ||
}, | ||
"NAudio.Wasapi/2.2.1": { | ||
"dependencies": { | ||
"NAudio.Core": "2.2.1" | ||
}, | ||
"runtime": { | ||
"lib/netstandard2.0/NAudio.Wasapi.dll": { | ||
"assemblyVersion": "2.2.1.0", | ||
"fileVersion": "2.2.1.0" | ||
} | ||
} | ||
}, | ||
"NAudio.WinMM/2.2.1": { | ||
"dependencies": { | ||
"Microsoft.Win32.Registry": "4.7.0", | ||
"NAudio.Core": "2.2.1" | ||
}, | ||
"runtime": { | ||
"lib/netstandard2.0/NAudio.WinMM.dll": { | ||
"assemblyVersion": "2.2.1.0", | ||
"fileVersion": "2.2.1.0" | ||
} | ||
} | ||
}, | ||
"Spectre.Console/0.48.0": { | ||
"dependencies": { | ||
"System.Memory": "4.5.5" | ||
}, | ||
"runtime": { | ||
"lib/net8.0/Spectre.Console.dll": { | ||
"assemblyVersion": "0.0.0.0", | ||
"fileVersion": "0.48.0.0" | ||
} | ||
} | ||
}, | ||
"Spectre.Console.Cli/0.48.0": { | ||
"dependencies": { | ||
"Spectre.Console": "0.48.0" | ||
}, | ||
"runtime": { | ||
"lib/net8.0/Spectre.Console.Cli.dll": { | ||
"assemblyVersion": "0.0.0.0", | ||
"fileVersion": "0.48.0.0" | ||
} | ||
}, | ||
"resources": { | ||
"lib/net8.0/de/Spectre.Console.Cli.resources.dll": { | ||
"locale": "de" | ||
}, | ||
"lib/net8.0/fr/Spectre.Console.Cli.resources.dll": { | ||
"locale": "fr" | ||
}, | ||
"lib/net8.0/sv/Spectre.Console.Cli.resources.dll": { | ||
"locale": "sv" | ||
} | ||
} | ||
}, | ||
"Spectre.Console.Json/0.48.0": { | ||
"dependencies": { | ||
"Spectre.Console": "0.48.0" | ||
}, | ||
"runtime": { | ||
"lib/net8.0/Spectre.Console.Json.dll": { | ||
"assemblyVersion": "0.0.0.0", | ||
"fileVersion": "0.48.0.0" | ||
} | ||
} | ||
}, | ||
"Spectre.Console.Testing/0.48.0": { | ||
"dependencies": { | ||
"Spectre.Console": "0.48.0", | ||
"Spectre.Console.Cli": "0.48.0" | ||
}, | ||
"runtime": { | ||
"lib/net8.0/Spectre.Console.Testing.dll": { | ||
"assemblyVersion": "0.0.0.0", | ||
"fileVersion": "0.48.0.0" | ||
} | ||
} | ||
}, | ||
"System.Memory/4.5.5": {}, | ||
"System.Security.AccessControl/4.7.0": { | ||
"dependencies": { | ||
"Microsoft.NETCore.Platforms": "3.1.0", | ||
"System.Security.Principal.Windows": "4.7.0" | ||
} | ||
}, | ||
"System.Security.Principal.Windows/4.7.0": {} | ||
} | ||
}, | ||
"libraries": { | ||
"accorda-cli/1.0.0": { | ||
"type": "project", | ||
"serviceable": false, | ||
"sha512": "" | ||
}, | ||
"Microsoft.NETCore.Platforms/3.1.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-z7aeg8oHln2CuNulfhiLYxCVMPEwBl3rzicjvIX+4sUuCwvXw5oXQEtbiU2c0z4qYL5L3Kmx0mMA/+t/SbY67w==", | ||
"path": "microsoft.netcore.platforms/3.1.0", | ||
"hashPath": "microsoft.netcore.platforms.3.1.0.nupkg.sha512" | ||
}, | ||
"Microsoft.Win32.Registry/4.7.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-KSrRMb5vNi0CWSGG1++id2ZOs/1QhRqROt+qgbEAdQuGjGrFcl4AOl4/exGPUYz2wUnU42nvJqon1T3U0kPXLA==", | ||
"path": "microsoft.win32.registry/4.7.0", | ||
"hashPath": "microsoft.win32.registry.4.7.0.nupkg.sha512" | ||
}, | ||
"NAudio/2.2.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-c0DzwiyyklM0TP39Y7RObwO3QkWecgM6H60ikiEnsV/aEAJPbj5MFCLaD8BSfKuZe0HGuh9GRGWWlJmSxDc9MA==", | ||
"path": "naudio/2.2.1", | ||
"hashPath": "naudio.2.2.1.nupkg.sha512" | ||
}, | ||
"NAudio.Asio/2.2.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-hQglyOT5iT3XuGpBP8ZG0+aoqwRfidHjTNehpoWwX0g6KJEgtH2VaqM2nuJ2mheKZa/IBqB4YQTZVvrIapzfOA==", | ||
"path": "naudio.asio/2.2.1", | ||
"hashPath": "naudio.asio.2.2.1.nupkg.sha512" | ||
}, | ||
"NAudio.Core/2.2.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-GgkdP6K/7FqXFo7uHvoqGZTJvW4z8g2IffhOO4JHaLzKCdDOUEzVKtveoZkCuUX8eV2HAINqi7VFqlFndrnz/g==", | ||
"path": "naudio.core/2.2.1", | ||
"hashPath": "naudio.core.2.2.1.nupkg.sha512" | ||
}, | ||
"NAudio.Midi/2.2.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-6r23ylGo5aeP02WFXsPquz0T0hFJWyh+7t++tz19tc3Kr38NHm+Z9j+FiAv+xkH8tZqXJqus9Q8p6u7bidIgbw==", | ||
"path": "naudio.midi/2.2.1", | ||
"hashPath": "naudio.midi.2.2.1.nupkg.sha512" | ||
}, | ||
"NAudio.Wasapi/2.2.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-lFfXoqacZZe0WqNChJgGYI+XV/n/61LzPHT3C1CJp4khoxeo2sziyX5wzNYWeCMNbsWxFvT3b3iXeY1UYjBhZw==", | ||
"path": "naudio.wasapi/2.2.1", | ||
"hashPath": "naudio.wasapi.2.2.1.nupkg.sha512" | ||
}, | ||
"NAudio.WinMM/2.2.1": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-xFHRFwH4x6aq3IxRbewvO33ugJRvZFEOfO62i7uQJRUNW2cnu6BeBTHUS0JD5KBucZbHZaYqxQG8dwZ47ezQuQ==", | ||
"path": "naudio.winmm/2.2.1", | ||
"hashPath": "naudio.winmm.2.2.1.nupkg.sha512" | ||
}, | ||
"Spectre.Console/0.48.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-4Mc1UT7Azgtyb8FyNwK5FZmoZbKuT5PmY7ZwaKUytjD5kGFMNBACpOZTwYtkuY377YkYtZYBeDDTJUwTW86QXw==", | ||
"path": "spectre.console/0.48.0", | ||
"hashPath": "spectre.console.0.48.0.nupkg.sha512" | ||
}, | ||
"Spectre.Console.Cli/0.48.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-HNoDxAOTODQ9h+4K5Cs2caW8kIicRKw5SS4vgEEkJtnTp7/4XR8OIGvCjVi09w3m+xn4lTlkS0ENy2ktGz4HRw==", | ||
"path": "spectre.console.cli/0.48.0", | ||
"hashPath": "spectre.console.cli.0.48.0.nupkg.sha512" | ||
}, | ||
"Spectre.Console.Json/0.48.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-I6g4FkdQ3ONcPe5rmLQHU0ZesU/JGKFb9EDBDcjyUExLykLBmXn6yymej12fBd3//2T9yybqdAFTZ8+4/GVsTw==", | ||
"path": "spectre.console.json/0.48.0", | ||
"hashPath": "spectre.console.json.0.48.0.nupkg.sha512" | ||
}, | ||
"Spectre.Console.Testing/0.48.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-j4KOoZlcARoIV0Q4g1r6HLxYfjLiK1RX67E5VtRNL08709+a031Cgn9DTjTWn8D1fgOc38sVYx7VksMIkPRW2Q==", | ||
"path": "spectre.console.testing/0.48.0", | ||
"hashPath": "spectre.console.testing.0.48.0.nupkg.sha512" | ||
}, | ||
"System.Memory/4.5.5": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", | ||
"path": "system.memory/4.5.5", | ||
"hashPath": "system.memory.4.5.5.nupkg.sha512" | ||
}, | ||
"System.Security.AccessControl/4.7.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-JECvTt5aFF3WT3gHpfofL2MNNP6v84sxtXxpqhLBCcDRzqsPBmHhQ6shv4DwwN2tRlzsUxtb3G9M3763rbXKDg==", | ||
"path": "system.security.accesscontrol/4.7.0", | ||
"hashPath": "system.security.accesscontrol.4.7.0.nupkg.sha512" | ||
}, | ||
"System.Security.Principal.Windows/4.7.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-ojD0PX0XhneCsUbAZVKdb7h/70vyYMDYs85lwEI+LngEONe/17A0cFaRFqZU+sOEidcVswYWikYOQ9PPfjlbtQ==", | ||
"path": "system.security.principal.windows/4.7.0", | ||
"hashPath": "system.security.principal.windows.4.7.0.nupkg.sha512" | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
accorda-cli/bin/Debug/net8.0/accorda-cli.runtimeconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"runtimeOptions": { | ||
"tfm": "net8.0", | ||
"framework": { | ||
"name": "Microsoft.NETCore.App", | ||
"version": "8.0.0" | ||
}, | ||
"configProperties": { | ||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.