Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Do not rely rely on init and global root command for command wiring #49

Open
fbiville opened this issue Feb 11, 2020 · 0 comments
Open

Comments

@fbiville
Copy link
Contributor

Currently, each command attaches itself via init() and the Root command variable, made globally available.

This could lead to hard-to-predict behavior when image-relocation is used as a library, especially if the project using it also uses Cobra in a similar way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant