@@ -75,7 +75,8 @@ private static void ExecuteCommand(Options options)
75
75
}
76
76
Console . WriteLine ( installMessage ) ;
77
77
}
78
- AppBundleUtils . FindAppBundleByAppName ( appBundleName ) ? . ToDataTable ( ) . Print ( ) ;
78
+ var appBundleInfo = AppBundleUtils . FindAppBundleByAppName ( appBundleName ) ;
79
+ appBundleInfo . Show ( Verbosity ) ;
79
80
}
80
81
else if ( options . Uninstall )
81
82
{
@@ -124,10 +125,7 @@ private static void ExecuteCommand(Options options)
124
125
Console . WriteLine ( $ "AppBundle '{ appBundleName } ' not found.". ToConsoleRed ( ) ) ;
125
126
return ;
126
127
}
127
- foreach ( var table in appBundleInfo . ToDataTables ( Verbosity ) )
128
- {
129
- table . Print ( ) ;
130
- }
128
+ appBundleInfo . Show ( Verbosity ) ;
131
129
}
132
130
else
133
131
{
@@ -137,18 +135,15 @@ private static void ExecuteCommand(Options options)
137
135
}
138
136
else
139
137
{
140
- var appBundle = AppBundleUtils . FindAppBundle ( appBundleName ) ;
141
- if ( appBundle is null )
138
+ var appBundleInfo = AppBundleUtils . FindAppBundle ( appBundleName ) ;
139
+ if ( appBundleInfo is null )
142
140
{
143
141
Show ( ) ;
144
142
Console . WriteLine ( $ "AppBundle '{ appBundleName } ' not found.". ToConsoleYellow ( ) ) ;
145
143
return ;
146
144
}
147
145
148
- foreach ( var table in appBundle . ToDataTables ( Verbosity ) )
149
- {
150
- table . Print ( ) ;
151
- }
146
+ appBundleInfo . Show ( Verbosity ) ;
152
147
}
153
148
}
154
149
else
@@ -215,7 +210,7 @@ public static void WriteLine(object message)
215
210
public static void Show ( )
216
211
{
217
212
var appBundles = AppBundleUtils . GetAppBundles ( ) ;
218
- appBundles . ToDataTable ( Verbosity ) . Print ( ) ;
213
+ appBundles . Show ( Verbosity ) ;
219
214
}
220
215
221
216
private static string DisplayHelp < T > ( ParserResult < T > result )
0 commit comments