// ImportTopicSettingsCmd to read topic-settings from files
ImportTopicSettingsCmd to read topic-settings from files
// ImportTopicSettingsCmd to read topic - settings from files
func ImportTopicSettingsCmd() *cobra.Command {
	var path string
	cmd := &cobra.Command{
		Use: "topic-settings",
		Long: heredoc.Doc(`
			Import Topic Settings
			The settings can be import from a different Kafka Cluster to allow for best GitOps practices.
		`),
		Example: heredoc.Doc(`
			$ lenses-cli import topic-settings --dir /directory
		`),
		SilenceErrors:    true,
		TraverseChildren: true,
		RunE: func(cmd *cobra.Command, args []string) error {
			path = fmt.Sprintf("%s/%s", path, pkg.TopicSettingsPath)
			err := ReadTopicSettings(config.Client, cmd, path)
			return errors.Wrapf(err, utils.RED("Failed to read topic-settings"))
		},
	}
	cmd.Flags().StringVarP(&path, "dir", "D", ".", "Base directory to import")
	bite.CanPrintJSON(cmd)
	bite.CanBeSilent(cmd)
	cmd.Flags().Set("silent", "true")
	return cmd
}
func ImportTopicSettingsCmd ( ) * cobra . Command { var path string cmd := & cobra . Command { Use : " " , Long : heredoc . Doc ( `
			Import Topic Settings

			The settings can be import from a different Kafka Cluster to allow for best GitOps practices.
		` ) , Example : heredoc . Doc ( `
			$ lenses-cli import topic-settings --dir /directory
		` ) , SilenceErrors : true , TraverseChildren : true , RunE : func ( cmd * cobra . Command , args [ ] string ) error { path = fmt . Sprintf ( " " , path , pkg . TopicSettingsPath ) err := ReadTopicSettings ( config . Client , cmd , path ) return errors . Wrapf ( err , utils . RED ( " " ) ) } , } cmd . Flags ( ) . StringVarP ( & path , " " , " " , " " , " " ) bite . CanPrintJSON ( cmd ) bite . CanBeSilent ( cmd ) cmd . Flags ( ) . Set ( " " , " " ) return cmd }
ImportTopicSettingsCmd to read topic-settings from files
ImportTopicSettingsCmd to read topic - settings from files