cli: Add 'agent generate-config' sub-command (#20530)

This commit is contained in:
Anton Averchenkov
2023-05-19 13:42:19 -04:00
committed by GitHub
parent 3d7d8f4965
commit 1a1af69cdd
7 changed files with 741 additions and 0 deletions

View File

@@ -268,6 +268,11 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) map[string]cli.Co
SighupCh: MakeSighupCh(),
}, nil
},
"agent generate-config": func() (cli.Command, error) {
return &AgentGenerateConfigCommand{
BaseCommand: getBaseCommand(),
}, nil
},
"audit": func() (cli.Command, error) {
return &AuditCommand{
BaseCommand: getBaseCommand(),