mage icon indicating copy to clipboard operation
mage copied to clipboard

Nested namespaces

Open diegobernardes opened this issue 7 years ago • 3 comments

It's possible or there is any roadmap to support nested namespaces? This is useful during complex workflows:

mage docker:ci:build
mage docker:ci:push
mage docker:app:build
mage docker:app:push

diegobernardes avatar Sep 08 '18 13:09 diegobernardes

Ahh like nested namespaces? yeah, I've been thinking about that. Seems doable.

natefinch avatar Sep 08 '18 14:09 natefinch

Don't know why I wrote multiple 😅, yep, it's nested namespaces. The implementation could be something like this:

type Docker mg.Namespace

type CI Docker

func (CI) Build() error { return nil }

That will create this key: docker:ci:build.

diegobernardes avatar Sep 08 '18 14:09 diegobernardes

Would love to have this -- looks like there's a PR open by @56KBs #433

aluzzardi avatar Oct 20 '22 22:10 aluzzardi