Make command internal
This commit is contained in:
@@ -28,6 +28,7 @@ type Options struct {
|
||||
func newOptions(opts ...Option) Options {
|
||||
opt := Options{
|
||||
Broker: broker.DefaultBroker,
|
||||
Cmd: cmd.DefaultCmd,
|
||||
Client: client.DefaultClient,
|
||||
Server: server.DefaultServer,
|
||||
Registry: registry.DefaultRegistry,
|
||||
@@ -39,14 +40,6 @@ func newOptions(opts ...Option) Options {
|
||||
o(&opt)
|
||||
}
|
||||
|
||||
// New Command
|
||||
if opt.Cmd == nil {
|
||||
opt.Cmd = cmd.NewCmd(
|
||||
cmd.Name(opt.Server.Options().Name),
|
||||
cmd.Version(opt.Server.Options().Version),
|
||||
)
|
||||
}
|
||||
|
||||
return opt
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user