Make command internal

This commit is contained in:
Asim
2016-01-02 00:38:57 +00:00
parent 59a667130c
commit 1f1bc27421
8 changed files with 329 additions and 131 deletions

View File

@@ -31,13 +31,13 @@ func newService(opts ...Option) Service {
}
func (s *service) Init(opts ...Option) {
// Initialise the command flags, overriding new service
s.opts.Cmd.Init()
// Update any options to override command flags
for _, o := range opts {
o(&s.opts)
}
s = newService(opts...).(*service)
}
func (s *service) Cmd() cmd.Cmd {