-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further changes to support multiple providers:
- moves all `init()` functions to `main.go` by making each package's `init()` public (`Init()`) so they can be run in a specific order - uses a new `RegisterProviderCommand` to add provider versions of each comand as a subcommand to cani's command. this currently requires the passing of a provider name for all calls but easily allows for each provider to define their own settings and not clash with each other - adds a `utils.CloneCommand()` funciton to clone a cobra command, which providers can use to create and modify the commands as needed - converts `recommendations.Print()` method to a provider-specific method: `root.D.PrintRecommendations(cmd, args, recommendations)` - changes some variable names from `bootstrapCmd` to `caniCmd` to better distinguish cani vs. provider - moves additional cray-sauce like cabinet vlans out of the `cmd` package and into the `csm` package where it belongs - updates `provider.ProviderCommands` interface for all currently-supported commands - adjusts test to call `csm`, which will begin to adjust tests for multiple providers - adjusts help fixtures as needed - converts some CSM `DEBUG` statements to `TRACE` since development will be minimal on CSM and less of that info is relevant to multiple providers - changes some `cmd.Name()` conditionals to `cmd.Parent().Name()` since the provider command is a sub command - updated `makeprovider` command for changes (some stupid changes, but they meet the immediate need) Signed-off-by: Jacob Salmela <jacob.salmela@hpe.com>
- Loading branch information
1 parent
fa9db40
commit 129e3c9
Showing
48 changed files
with
571 additions
and
446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.