cobra/goweb_command.go
Muyao CHEN 6d888d3313
Some checks failed
Test / lic-headers (push) Has been cancelled
Test / golangci-lint (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (17, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (17, ubuntu) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (18, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (18, ubuntu) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (19, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (19, ubuntu) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (20, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (20, ubuntu) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (21, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (21, ubuntu) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (22, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (22, ubuntu) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (23, macOS) (push) Has been cancelled
Test / ${{ matrix.platform }} | 1.${{ matrix.go }}.x (23, ubuntu) (push) Has been cancelled
Test / MINGW64 (push) Has been cancelled
GoWeb: add container into command
2024-09-30 13:59:53 +02:00

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
}