code: func RunConfigList(dockerCli command.Cli, options ListOptions) error {
  	client := dockerCli.Client()
  	ctx := context.Background()
  
  	configs, err := client.ConfigList(ctx, types.ConfigListOptions{Filters: options.Filter.Value()})
  	if err != nil {
  		return err
  	}
  
  	format := options.Format
  	if len(format) == 0 {
  		if len(dockerCli.ConfigFile().ConfigFormat) > 0 && !options.Quiet {
  			format = dockerCli.ConfigFile().ConfigFormat
  		} else {
  			format = formatter.TableFormatKey
  		}
  	}
  
  	sort.Slice(configs, func(i, j int) bool {
  		return sortorder.NaturalLess(configs[i].Spec.Name, configs[j].Spec.Name)
  	})
  
  	configCtx := formatter.Context{
  		Output: dockerCli.Out(),
  		Format: NewFormat(format, options.Quiet),
  	}
  	return FormatWrite(configCtx, configs)
  }
docs: // RunConfigList lists Swarm configs.