@@ -20,7 +20,7 @@ internal class CoreCommandService
2020 private PluginManager _PluginManager { get ; init ; }
2121 private ProfileService _ProfileService { get ; init ; }
2222
23- public CoreCommandService ( ILogger < CoreCommandService > logger , ISwiftlyCore core , PluginManager pluginManager , ProfileService profileService )
23+ public CoreCommandService ( ILogger < CoreCommandService > logger , ISwiftlyCore core , PluginManager pluginManager , ProfileService profileService )
2424 {
2525 _Logger = logger ;
2626 _Core = core ;
@@ -30,7 +30,7 @@ public CoreCommandService(ILogger<CoreCommandService> logger, ISwiftlyCore core,
3030 _CommandService . RegisterCommand ( "sw" , OnCommand , true ) ;
3131 }
3232
33- private void OnCommand ( ICommandContext context )
33+ private void OnCommand ( ICommandContext context )
3434 {
3535 try
3636 {
@@ -133,7 +133,7 @@ SwiftlyS2 is licensed under the GNU General Public License v3.0 or later.
133133 }
134134 }
135135
136- private static void ShowHelp ( ICommandContext context )
136+ private static void ShowHelp ( ICommandContext context )
137137 {
138138 var table = new Table ( ) . AddColumn ( "Command" ) . AddColumn ( "Description" ) ;
139139 table . AddRow ( "credits" , "List Swiftly credits" ) ;
@@ -151,7 +151,7 @@ private static void ShowHelp(ICommandContext context)
151151 AnsiConsole . Write ( table ) ;
152152 }
153153
154- private void ConfilterCommand ( ICommandContext context )
154+ private void ConfilterCommand ( ICommandContext context )
155155 {
156156 var args = context . Args ;
157157 if ( args . Length == 1 )
@@ -188,7 +188,7 @@ private void ConfilterCommand(ICommandContext context)
188188 }
189189 }
190190
191- private void ProfilerCommand ( ICommandContext context )
191+ private void ProfilerCommand ( ICommandContext context )
192192 {
193193 var args = context . Args ;
194194 if ( args . Length == 1 )
@@ -233,7 +233,7 @@ private void ProfilerCommand(ICommandContext context)
233233 }
234234 }
235235
236- private void PluginCommand ( ICommandContext context )
236+ private void PluginCommand ( ICommandContext context )
237237 {
238238 var args = context . Args ;
239239 if ( args . Length == 1 )
@@ -250,10 +250,10 @@ private void PluginCommand(ICommandContext context)
250250 switch ( args [ 1 ] )
251251 {
252252 case "list" :
253- var table = new Table ( ) . AddColumn ( "Name" ) . AddColumn ( "Status" ) ;
253+ var table = new Table ( ) . AddColumn ( "Name" ) . AddColumn ( "Status" ) . AddColumn ( "Version" ) . AddColumn ( "Author" ) . AddColumn ( "Website" ) ;
254254 foreach ( var plugin in _PluginManager . GetPlugins ( ) )
255255 {
256- table . AddRow ( plugin . Metadata ? . Id ?? "<UNKNOWN>" , plugin . Status ? . ToString ( ) ?? "Unknown" ) ;
256+ table . AddRow ( plugin . Metadata ? . Id ?? "<UNKNOWN>" , plugin . Status ? . ToString ( ) ?? "Unknown" , plugin . Metadata ? . Version ?? "<UNKNOWN>" , plugin . Metadata ? . Author ?? "<UNKNOWN>" , plugin . Metadata ? . Website ?? "<UNKNOWN>" ) ;
257257 }
258258 AnsiConsole . Write ( table ) ;
259259 break ;
0 commit comments