<commit_before>package main

import (
	"fmt"

	"github.com/compose/transporter/pkg/adaptor"
)

func runAbout(args []string) error {
	flagset := baseFlagSet("about", nil)
	flagset.Usage = usageFor(flagset, "transporter about [adaptor]")
	if err := flagset.Parse(args); err != nil {
		return err
	}

	args = flagset.Args()
	if len(args) > 0 {
		creator, ok := adaptor.Adaptors[args[0]]
		if !ok {
			return fmt.Errorf("no adaptor named '%s' exists", args[0])
		}
		adaptor.Adaptors = map[string]adaptor.Creator{args[0]: creator}
	}

	for name, creator := range adaptor.Adaptors {
		dummyAdaptor, err := creator(nil, "", adaptor.Config{"uri": "test", "namespace": "test.test"})
		if err != nil {
			return fmt.Errorf("unable to create adaptor '%s', %s", name, err)
		}
		if d, ok := dummyAdaptor.(adaptor.Describable); ok {
			fmt.Printf("%s - %s\n", name, d.Description())<commit_msg>ignore any errors returned from calling Creator func in about cmd (#286)<commit_after>package main

import (
	"fmt"

	"github.com/compose/transporter/pkg/adaptor"
)

func runAbout(args []string) error {
	flagset := baseFlagSet("about", nil)
	flagset.Usage = usageFor(flagset, "transporter about [adaptor]")
	if err := flagset.Parse(args); err != nil {
		return err
	}

	args = flagset.Args()
	if len(args) > 0 {
		creator, ok := adaptor.Adaptors[args[0]]
		if !ok {
			return fmt.Errorf("no adaptor named '%s' exists", args[0])
		}
		adaptor.Adaptors = map[string]adaptor.Creator{args[0]: creator}
	}

	for name, creator := range adaptor.Adaptors {
		dummyAdaptor, _ := creator(nil, "", adaptor.Config{"uri": "test", "namespace": "test.test"})
		if d, ok := dummyAdaptor.(adaptor.Describable); ok {
			fmt.Printf("%s - %s\n", name, d.Description())
{'fraction_non_alphanumeric': 0.17052023121387283, 'fraction_numerical': 0.006358381502890174, 'mean_word_length': 4.359133126934984, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3591648', 'n_tokens_mistral': 677, 'n_tokens_neox': 627, 'n_words': 151}