mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
Rewrote generators to use plugin system with default plugins
This commit is contained in:
parent
8036a5a8c0
commit
d77a31c7fe
15 changed files with 712 additions and 179 deletions
|
|
@ -12,6 +12,7 @@ import (
|
|||
var (
|
||||
configPath string
|
||||
config configurator.Config
|
||||
verbose bool
|
||||
targets []string
|
||||
outputPath string
|
||||
)
|
||||
|
|
@ -36,7 +37,8 @@ func Execute() {
|
|||
|
||||
func init() {
|
||||
cobra.OnInitialize(initConfig)
|
||||
rootCmd.PersistentFlags().StringVarP(&configPath, "config", "c", "", "set the config path")
|
||||
rootCmd.PersistentFlags().StringVarP(&configPath, "config", "c", "./config.yaml", "set the config path")
|
||||
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "set to enable verbose output")
|
||||
}
|
||||
|
||||
func initConfig() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue