Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandInit ¶
CommandInit is used to initialize the configuration file in the current directory
func GetDefaultConfig ¶
GetDefaultConfig is used to get default config
func GetWellKnownPluginsOptionValues ¶
func GetWellKnownPluginsOptionValues() []string
GetWellKnownPluginsOptionValues is used to get option values of well known plugins
func GetWellKnownRepositoriesOptionValues ¶ added in v0.3.0
func GetWellKnownRepositoriesOptionValues() []string
GetWellKnownRepositoriesOptionValues is used to get option values of well known plugins
Types ¶
type Plugin ¶
Plugin defines the plugin options
func GetPluginFromOptionsValue ¶
GetPluginFromOptionsValue is used to get plugin by option value
func GetPluginProtocGenGo ¶ added in v0.3.0
func GetPluginProtocGenGo() *Plugin
GetPluginProtocGenGo is used to get protoc-gen-go plugin
func GetPluginProtocGenGoGRPC ¶ added in v0.3.0
func GetPluginProtocGenGoGRPC() *Plugin
GetPluginProtocGenGoGRPC is used to get protoc-gen-go-grpc plugin
func GetWellKnownPlugins ¶
func GetWellKnownPlugins() []*Plugin
GetWellKnownPlugins is used to get well known plugins
func (*Plugin) GetOptionsValue ¶ added in v0.3.0
GetOptionsValue is used to get options value of plugin
type Repository ¶ added in v0.3.0
Repository defines the plugin options
func GetRepositoryFromOptionsValue ¶ added in v0.3.0
func GetRepositoryFromOptionsValue(val string) (*Repository, bool)
GetRepositoryFromOptionsValue is used to get plugin by option value
func GetRepositoryGoGoProtobuf ¶ added in v0.3.0
func GetRepositoryGoGoProtobuf() *Repository
GetRepositoryGoGoProtobuf is used to get gogo protobuf repository
func GetRepositoryGoogleAPIs ¶ added in v0.3.0
func GetRepositoryGoogleAPIs() *Repository
GetRepositoryGoogleAPIs is used to get google apis repository
func GetWellKnownRepositories ¶ added in v0.3.0
func GetWellKnownRepositories() []*Repository
GetWellKnownRepositories is used to get well known plugins
func (*Repository) GetOptionsValue ¶ added in v0.3.0
func (repo *Repository) GetOptionsValue() string
OptionsValue is used to return the options value
type UserPreference ¶
type UserPreference struct { Plugins []string `survey:"plugins"` Repositories []string `survey:"repositories"` }
UserPreference defines the model of user preference
func GetUserPreference ¶
func GetUserPreference() (*UserPreference, error)
GetUserPreference is used to get user preference