File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,8 @@ private void DisplayGeneralHelp()
144
144
. Where ( c => c != Context . None )
145
145
. Distinct ( )
146
146
. OrderBy ( c => c . ToLowerCaseString ( ) ) ;
147
+ Utilities . PrintVersion ( ) ;
147
148
ColoredConsole
148
- . WriteLine ( $ "Azure Functions Core Tools ({ Constants . CliDisplayVersion } )")
149
- . WriteLine ( $ "Function Runtime Version: { ScriptHost . Version } ")
150
149
. WriteLine ( "Usage: func [context] [context] <action> [-/--options]" )
151
150
. WriteLine ( ) ;
152
151
DisplayContextsHelp ( contexts ) ;
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ public override async Task RunAsync()
205
205
206
206
await PreRunConditions ( workerRuntime ) ;
207
207
Utilities . PrintLogo ( ) ;
208
+ Utilities . PrintVersion ( ) ;
208
209
209
210
var settings = SelfHostWebHostSettingsFactory . Create ( Environment . CurrentDirectory ) ;
210
211
Original file line number Diff line number Diff line change 1
- using Colors . Net ;
1
+ using Azure . Functions . Cli . Common ;
2
+ using Colors . Net ;
2
3
using Colors . Net . StringColorExtensions ;
4
+ using Microsoft . Azure . WebJobs . Script ;
3
5
4
6
namespace Azure . Functions . Cli
5
7
{
@@ -23,6 +25,13 @@ internal static void PrintLogo()
23
25
. WriteLine ( ) ;
24
26
}
25
27
28
+ internal static void PrintVersion ( )
29
+ {
30
+ ColoredConsole
31
+ . WriteLine ( $ "Azure Functions Core Tools ({ Constants . CliDisplayVersion } )")
32
+ . WriteLine ( $ "Function Runtime Version: { ScriptHost . Version } ") ;
33
+ }
34
+
26
35
private static RichString AlternateLogoColor ( string str , int firstColorCount = - 1 )
27
36
{
28
37
if ( str . Length == 1 )
You can’t perform that action at this time.
0 commit comments