🎨 Abbellisci la tua app console F# in modo funzionale
Iniziamo • Download • Compilazione • Autore • Licenza
Sì tutto ok, ma la documentazione?
-
Installa
Confole.TemplatestramiteNuGet:dotnet new install Reallukee.Confole.Templates -
Crea un nuovo progetto da template:
dotnet new confole-app --language F# --name MyAppÈ possibile anche usare le API in stile imperativo:
dotnet new confole-app --language F# --name MyApp --mode imperative -
Esegui il template!
dotnet run MyApp
-
Installa
ConfoletramiteNuGet:dotnet add package Reallukee.Confole -
Incolla l'esempio minimale dell'uso dell'API di
Confole:open System open Reallukee.Confole let formats = Format.init () |> Format.italic true |> Format.foregroundColor (Color.RGB (255, 0, 0)) |> Format.backgroundColor (Color.RGB (0, 0, 255)) Format.applyAllNewLine "Hello, World!" formats do Console.ReadKey(true) |> ignore Format.reset ""
È possibile anche usare le API in stile imperativo:
open System open Reallukee.Confole Format.doForegroundColor "" (Color.RGB (255, 0, 0)) Format.doBackgroundColor "" (Color.RGB (0, 0, 255)) Format.doBold "Hello, World!" true printfn "" do Console.ReadKey(true) |> ignore Format.reset ""
-
Esegui il progetto!
dotnet run
Important
Confole.Sharp è wrapper OOP di Confole!
Note
Confole.Sharp INCLUDE tutte le funzionalità di Confole!
-
Installa
Confole.TemplatestramiteNuGet:dotnet new install Reallukee.Confole.Templates -
Crea un nuovo progetto da template:
dotnet new confole-app --language C# --name MyAppÈ possibile anche usare le API in modo statico:
dotnet new confole-app --language C# --name MyApp --mode static -
Esegui il template!
dotnet run MyApp
-
Installa
Confole.SharptramiteNuGet:dotnet add package Reallukee.Confole.Sharp -
Incolla l'esempio minimale dell'uso dell'API di
Confole.Sharp:using System; using Reallukee.Confole.Sharp; Formats formats = new Formats(); formats.AddItalic(true) .AddForegroundColor(new RGBColor(255, 0, 0)) .AddBackgroundColor(new RGBColor(0, 0, 255)); formats.ApplyAll("Hello, World!", true); Console.ReadKey(true); formats.Reset("");
È possibile anche usare le API in modo statico:
using System; using Reallukee.Confole.Sharp; Formats.DoForegroundColor("", new RGBColor(255, 0, 0)); Formats.DoBackgroundColor("", new RGBColor(0, 0, 255)); Formats.DoItalic("Hello, World!", true); Console.WriteLine(); Console.ReadKey(true); Formats.DoReset("");
-
Esegui il progetto!
dotnet run
| Pacchetto | Versione | Downloads |
|---|---|---|
Confole |
||
Confole# |
||
Confole Templates |
Tip
.NET 8.0+ SDK consigliata!
- .NET Core 2.0+ SDK o .NET 5.0+ SDK
- PowerShell 7+ (Per gli script)
Confole ha come target .NET Standard 2.0!
Sono quindi supportati i seguenti runtime:
- .NET Framework 4.6.1+
- .NET Core 2.0+ o .NET 5.0+
- Mono 5.4 o Mono 6.4
Note
Per maggiori informazioni qui!
git clone https://github.com/reallukee/confole.git
Tip
PowerShell è la scelta ideale in ambienti .NET oriented!
cd .\confole\scripts\Solo compilazione:
.\build.ps1Compilazione + Pacchettizzazione:
.\pack.ps1cd confoleSolo compilazione:
dotnet build confole.slnx --configuration Release
dotnet build ./confole --configuration Release
dotnet build ./confole.sharp --configuration Release
dotnet build ./confole.templates --configuration ReleaseCompilazione + Pacchettizzazione:
dotnet pack confole.slnx --configuration Release
dotnet pack ./confole --configuration Release
dotnet pack ./confole.sharp --configuration Release
dotnet pack ./confole.templates --configuration ReleaseLicenza MIT