Sfoglia il codice sorgente

QConsole:

      28.12.2019 v.1.0.2.0
      New
      - Add explicit write texts to console by colorized categories
Dalibor Votruba 6 anni fa
parent
commit
5b9a2afec2

+ 18 - 0
QConsole/QConsole/Command/Base/AbstractCommand.cs

@@ -202,6 +202,24 @@ namespace Quadarax.Foundation.QConsole.Command.Base
             }
         }
 
+        protected void WriteInfo(string text)
+        {
+            using (var writer = new ConsoleWriter(ConsoleColor.Green))
+                writer.WriteLine(text);
+        }
+
+        protected void WriteCaption(string text)
+        {
+            using (var writer = new ConsoleWriter(ConsoleColor.White))
+                writer.WriteLine(text);
+        }
+
+        protected void WriteWarning(string text)
+        {
+            using (var writer = new ConsoleWriter(ConsoleColor.Yellow))
+                writer.WriteLine(text);
+        }
+
         private void ShowContextStatus(ConsoleWriter writer)
         {
             using (var writerBlue = new ConsoleWriter(ConsoleColor.Blue))

+ 2 - 2
QConsole/QConsole/Properties/AssemblyInfo.cs

@@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
 // You can specify all the values or you can default the Build and Revision Numbers
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.0")]
-[assembly: AssemblyFileVersion("1.0.1.0")]
+[assembly: AssemblyVersion("1.0.2.0")]
+[assembly: AssemblyFileVersion("1.0.2.0")]

+ 3 - 5
QConsole/QConsole/QDR.FND.QConsole.nuspec

@@ -2,7 +2,7 @@
 <package>
   <metadata>
     <id>Quadarax.Foundation.QConsole</id>
-    <version>1.0.1.0</version>
+    <version>1.0.2.0</version>
     <title>Quadarax.Foundation.QConsole</title>
     <authors>Dalibor Votruba, Quadarax</authors>
     <owners>Dalibor Votruba</owners>
@@ -11,11 +11,9 @@
     <requireLicenseAcceptance>false</requireLicenseAcceptance>
     <description>Implementation base for console applications with commands, lists, selections and easy command handlings.</description>
     <releaseNotes>
-      26.12.2019 v.1.0.0.2
+      28.12.2019 v.1.0.2.0
       New
-      - Add contexts support to engine (infrastructure)
-      - Add contexts support to command
-      - Extends configuration ShowStatusOnEveryCommand
+      - Add explicit write texts to console by colorized categories
     </releaseNotes>
     <copyright>Copyright (c) 2019,2020 Quadarax</copyright>
     <tags>quadarax, foundation, qconsole, qdr, fnd, library, console</tags>

+ 5 - 1
QConsole/QConsole/ReleaseNote.txt

@@ -1,4 +1,8 @@
-26.12.2019 v.1.0.0.2
+28.12.2019 v.1.0.2.0
+New
+ - Add explicit write texts to console by colorized categories
+
+26.12.2019 v.1.0.0.2
 New
  - Add contexts support to engine (infrastructure)
  - Add contexts support to command