-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically generate available options for -target commandline arg (#…
…2752) * Add ModuleOption to ModuleManager Signed-off-by: Alvin Lin <alvinlin@amazon.com> * add support for -modules option Signed-off-by: Alvin Lin <alvinlin@amazon.com> * refactor so the -modules flag is defied in cortex.go instead of main.go Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Error out if given invalid target name Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Fix tests by defaulting moudules to public Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Update changelog Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Update changelog Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Implemented functional options for RegisterModule Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Remove RegisterModuleWithOption method Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Handled majority of PR comments Signed-off-by: Alvin Lin <alvinlin@amazon.com> * More PR review comments handling Signed-off-by: Alvin Lin <alvinlin@amazon.com> * put functional options for modules inside module package Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Update pkg/util/modules/modules.go Co-authored-by: Peter Štibraný <pstibrany@gmail.com> Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Update pkg/util/modules/modules.go Co-authored-by: Peter Štibraný <pstibrany@gmail.com> Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Address more PR comments Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Remove unneeded asserts Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Update CHANGELOG.md Co-authored-by: Peter Štibraný <pstibrany@gmail.com> Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Minimize diff with upstream/master Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Make code more readible Signed-off-by: Alvin Lin <alvinlin@amazon.com> * avoid creating new type for simple concept Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Update pkg/cortex/cortex.go Co-authored-by: Peter Štibraný <pstibrany@gmail.com> Signed-off-by: Alvin Lin <alvinlin@amazon.com> * remove unused import Signed-off-by: Alvin Lin <alvinlin@amazon.com> * Resolve more conflict Signed-off-by: Alvin Lin <alvinlin@amazon.com> Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
- Loading branch information
1 parent
d16b681
commit 92622a8
Showing
8 changed files
with
181 additions
and
24 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