@@ -3,6 +3,7 @@ package main
33import (
44 "github.com/spf13/cobra"
55
6+ "github.com/devstream-io/devstream/internal/pkg/pluginengine"
67 "github.com/devstream-io/devstream/internal/pkg/show/config"
78 "github.com/devstream-io/devstream/internal/pkg/show/status"
89 "github.com/devstream-io/devstream/pkg/util/log"
@@ -56,8 +57,11 @@ func init() {
5657 showCMD .AddCommand (showConfigCMD )
5758 showCMD .AddCommand (showStatusCMD )
5859
59- showConfigCMD .PersistentFlags ().StringVarP (& plugin , "plugin" , "p" , "" , "specify name with the plugin" )
60- showStatusCMD .PersistentFlags ().StringVarP (& plugin , "plugin" , "p" , "" , "specify name with the plugin" )
61- showStatusCMD .PersistentFlags ().StringVarP (& instanceID , "id" , "i" , "" , "specify id with the plugin instance" )
62- showStatusCMD .PersistentFlags ().BoolVarP (& statusAllFlag , "all" , "a" , false , "show all instances of all plugins status" )
60+ showConfigCMD .Flags ().StringVarP (& plugin , "plugin" , "p" , "" , "specify name with the plugin" )
61+
62+ showStatusCMD .Flags ().StringVarP (& plugin , "plugin" , "p" , "" , "specify name with the plugin" )
63+ showStatusCMD .Flags ().StringVarP (& instanceID , "id" , "i" , "" , "specify id with the plugin instance" )
64+ showStatusCMD .Flags ().BoolVarP (& statusAllFlag , "all" , "a" , false , "show all instances of all plugins status" )
65+ showStatusCMD .Flags ().StringVarP (& pluginDir , "plugin-dir" , "d" , pluginengine .DefaultPluginDir , "plugins directory" )
66+ showStatusCMD .Flags ().StringVarP (& configFile , "config-file" , "f" , "config.yaml" , "config file" )
6367}
0 commit comments