File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,8 @@ private void DisplayGeneralHelp()
144144 . Where ( c => c != Context . None )
145145 . Distinct ( )
146146 . OrderBy ( c => c . ToLowerCaseString ( ) ) ;
147+ Utilities . PrintVersion ( ) ;
147148 ColoredConsole
148- . WriteLine ( $ "Azure Functions Core Tools ({ Constants . CliDisplayVersion } )")
149- . WriteLine ( $ "Function Runtime Version: { ScriptHost . Version } ")
150149 . WriteLine ( "Usage: func [context] [context] <action> [-/--options]" )
151150 . WriteLine ( ) ;
152151 DisplayContextsHelp ( contexts ) ;
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ public override async Task RunAsync()
205205
206206 await PreRunConditions ( workerRuntime ) ;
207207 Utilities . PrintLogo ( ) ;
208+ Utilities . PrintVersion ( ) ;
208209
209210 var settings = SelfHostWebHostSettingsFactory . Create ( Environment . CurrentDirectory ) ;
210211
Original file line number Diff line number Diff line change 1- using Colors . Net ;
1+ using Azure . Functions . Cli . Common ;
2+ using Colors . Net ;
23using Colors . Net . StringColorExtensions ;
4+ using Microsoft . Azure . WebJobs . Script ;
35
46namespace Azure . Functions . Cli
57{
@@ -23,6 +25,13 @@ internal static void PrintLogo()
2325 . WriteLine ( ) ;
2426 }
2527
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+
2635 private static RichString AlternateLogoColor ( string str , int firstColorCount = - 1 )
2736 {
2837 if ( str . Length == 1 )
You can’t perform that action at this time.
0 commit comments