12 lines
244 B
Go
12 lines
244 B
Go
|
package cobra
|
||
|
|
||
|
import "git.vinchent.xyz/vinchent/go-web/framework"
|
||
|
|
||
|
func (c *Command) SetContainer(container framework.Container) {
|
||
|
c.container = container
|
||
|
}
|
||
|
|
||
|
func (c *Command) GetContainer() framework.Container {
|
||
|
return c.Root().container
|
||
|
}
|