mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 07:29:29 -05:00
Add --cdbg-config next to --config for cdbg
This commit is contained in:
parent
68092f27dd
commit
cdfd962fcc
@ -37,16 +37,20 @@ Specifying --coordinator will upload the coordinator from the specified path.`,
|
||||
}
|
||||
|
||||
func runDeploy(cmd *cobra.Command, args []string) error {
|
||||
debugConfigName, err := cmd.Flags().GetString("cdbg-config")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
configName, err := cmd.Flags().GetString("config")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fileHandler := file.NewHandler(afero.NewOsFs())
|
||||
debugConfig, err := config.FromFile(fileHandler, configName)
|
||||
debugConfig, err := config.FromFile(fileHandler, debugConfigName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
constellationConfig, err := configc.FromFile(fileHandler, constants.ConfigFilename)
|
||||
constellationConfig, err := configc.FromFile(fileHandler, configName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -22,5 +22,6 @@ func Execute() {
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.PersistentFlags().String("config", constants.DebugdConfigFilename, "debugd config file")
|
||||
rootCmd.PersistentFlags().String("config", constants.ConfigFilename, "Constellation config file")
|
||||
rootCmd.PersistentFlags().String("cdbg-config", constants.DebugdConfigFilename, "debugd config file")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user