Use configuration input struct (#645)

As we will be passing more flags to configure
 local agents, we need a more flexible type
This commit is contained in:
Maycon Santos
2023-01-08 12:57:28 +01:00
committed by GitHub
parent 27f4993ce3
commit ca62f6787a
7 changed files with 91 additions and 41 deletions

View File

@@ -56,7 +56,9 @@ var sshCmd = &cobra.Command{
ctx := internal.CtxInitState(cmd.Context())
config, err := internal.ReadConfig("", "", configPath, nil)
config, err := internal.ReadConfig(internal.ConfigInput{
ConfigPath: configPath,
})
if err != nil {
return err
}