INNER CODE UNIT · Go
runListConfigProfileCmd
percona/percona-backup-mongodb · cmd/pbm/main.go:432
runListConfigProfileCmd := app.wrapRunE(func(cmd *cobra.Command, args []string) (fmt.Stringer, error) {
if len(args) != 0 {
return nil, errors.New(fmt.Sprintf("parse command line parameters: unexpected %s", args[0]))
}
return handleListConfigProfiles(app.ctx, app.pbm)
})
configProfileCmd := &cobra.Command{
Use: "profile",
Short: "Configuration profiles",
RunE: runListConfigProfileCmd,
}
listConfigProfileCmd := &cobra.Command{
Use: "list",
Short: "List configuration profiles",
RunE: runListConfigProfileCmd,