// NewExportTopicSettingsCmd to export topic-settings to yaml
NewExportTopicSettingsCmd to export topic-settings to yaml
// NewExportTopicSettingsCmd to export topic - settings to yaml
func NewExportTopicSettingsCmd() *cobra.Command {
	cmd := &cobra.Command{
		Use: "topic-settings",
		Long: heredoc.Doc(`
			Export Topic Settings
			The settings can be exported to different Kafka Cluster to allow for best GitOps practices.
		`),
		Example: heredoc.Doc(`
			$ lenses-cli export
		`),
		SilenceErrors:    true,
		TraverseChildren: true,
		RunE: func(cmd *cobra.Command, args []string) error {
			client := config.Client
			setExecutionMode(client)
			checkFileFlags(cmd)
			err := WriteTopicSettings(cmd, client)
			return errors.WithStack(err)
		},
	}
	cmd.Flags().StringVarP(&landscapeDir, "dir", "D", ".", "Base directory to export to")
	bite.CanPrintJSON(cmd)
	bite.CanBeSilent(cmd)
	return cmd
}
func NewExportTopicSettingsCmd ( ) * cobra . Command { cmd := & cobra . Command { Use : " " , Long : heredoc . Doc ( `
			Export Topic Settings

			The settings can be exported to different Kafka Cluster to allow for best GitOps practices.
		` ) , Example : heredoc . Doc ( `
			$ lenses-cli export
		` ) , SilenceErrors : true , TraverseChildren : true , RunE : func ( cmd * cobra . Command , args [ ] string ) error { client := config . Client setExecutionMode ( client ) checkFileFlags ( cmd ) err := WriteTopicSettings ( cmd , client ) return errors . WithStack ( err ) } , } cmd . Flags ( ) . StringVarP ( & landscapeDir , " " , " " , " " , " " ) bite . CanPrintJSON ( cmd ) bite . CanBeSilent ( cmd ) return cmd }
NewExportTopicSettingsCmd to export topic-settings to yaml
NewExportTopicSettingsCmd to export topic - settings to yaml