File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export class FindPluginsCommand implements ICommand {
28
28
this . $progressIndicator . showProgressIndicator ( pluginsFuture , 500 ) . wait ( ) ;
29
29
let plugins : IDictionary < any > = pluginsFuture . get ( ) ;
30
30
31
- this . $logger . out ( "Available NativeScript plugins" ) ;
32
31
this . showPlugins ( plugins ) . wait ( ) ;
33
32
} ) . future < void > ( ) ( ) ;
34
33
}
@@ -43,6 +42,11 @@ export class FindPluginsCommand implements ICommand {
43
42
return ( ( ) => {
44
43
let allPluginsNames : string [ ] = _ . keys ( plugins ) . sort ( ) ;
45
44
45
+ if ( ! allPluginsNames || ! allPluginsNames . length ) {
46
+ this . $logger . warn ( "No plugins found." ) ;
47
+ return ;
48
+ }
49
+
46
50
let count : number = this . $options . count || FindPluginsCommand . COUNT_OF_PLUGINS_TO_DISPLAY ;
47
51
48
52
if ( ! isInteractive ( ) || this . $options . all ) {
@@ -54,6 +58,8 @@ export class FindPluginsCommand implements ICommand {
54
58
let pluginsToDisplay : string [ ] = allPluginsNames . splice ( 0 , count ) ;
55
59
let shouldDisplayMorePlugins : boolean = true ;
56
60
61
+ this . $logger . out ( "Available NativeScript plugins:" ) ;
62
+
57
63
do {
58
64
data = this . createTableCells ( plugins , pluginsToDisplay ) ;
59
65
You can’t perform that action at this time.
0 commit comments