<commit_before>package cmd

import (
	"fmt"
	"github.com/rancher/go-rancher/v3"
	"github.com/urfave/cli"
)

func ClusterCommand() cli.Command {
	clusterLsFlags := []cli.Flag{
		listAllFlag(),
		cli.BoolFlag{
			Name:  "quiet,q",
			Usage: "Only display IDs",
		},
		cli.StringFlag{
			Name:  "format",
			Usage: "'json' or Custom format: '{{.ID}} {{.Environment.Name}}'",
		},
	}

	return cli.Command{
		Name:   "cluster",
		Usage:  "Interact with cluster",
		Action: defaultAction(clusterLs),
		Flags:  clusterLsFlags,
		Subcommands: []cli.Command{
			{
				Name:        "ls",
				Usage:       "List clusters",
				Description: "\nList all clusters in the current rancher setup\n",
				ArgsUsage:   "None",
				Action:      envLs,
				Flags:       clusterLsFlags,
			},
			{
				Name:        "create",
				Usage:       "create cluster",
				Description: "\nCreate cluster\n",
				ArgsUsage:   "None",
				Action:      clusterCreate,
			},
			{
				Name:        "rm",
				Usage:       "remove cluster",
				Description: "\nRemove cluster\n",
				ArgsUsage:   "None",
				Action:      clusterRemove,
			},
			{
				Name:        "export",
				Usage:       "export an external cluster",
				Description: "\nExport an external cluster inside the current cluster",
				ArgsUsage:   "None",
				Action:      clusterExport,
			},
		},
	}<commit_msg>fix cluster ls<commit_after>package cmd

import (
	"fmt"
	"github.com/rancher/go-rancher/v3"
	"github.com/urfave/cli"
)

func ClusterCommand() cli.Command {
	clusterLsFlags := []cli.Flag{
		listAllFlag(),
		cli.BoolFlag{
			Name:  "quiet,q",
			Usage: "Only display IDs",
		},
		cli.StringFlag{
			Name:  "format",
			Usage: "'json' or Custom format: '{{.ID}} {{.Environment.Name}}'",
		},
	}

	return cli.Command{
		Name:   "cluster",
		Usage:  "Interact with cluster",
		Action: defaultAction(clusterLs),
		Flags:  clusterLsFlags,
		Subcommands: []cli.Command{
			{
				Name:        "ls",
				Usage:       "List clusters",
				Description: "\nList all clusters in the current rancher setup\n",
				ArgsUsage:   "None",
				Action:      clusterLs,
				Flags:       clusterLsFlags,
			},
			{
				Name:        "create",
				Usage:       "create cluster",
				Description: "\nCreate cluster\n",
				ArgsUsage:   "None",
				Action:      clusterCreate,
			},
			{
				Name:        "rm",
				Usage:       "remove cluster",
				Description: "\nRemove cluster\n",
				ArgsUsage:   "None",
				Action:      clusterRemove,
			},
			{
				Name:        "export",
				Usage:       "export an external cluster",
				Description: "\nExport an external cluster inside the current cluster",
				ArgsUsage:   "None",
				Action:      clusterExport,
			},
		},
	}
{'fraction_non_alphanumeric': 0.14206024544440313, 'fraction_numerical': 0.0007437709185570844, 'mean_word_length': 2.426751592356688, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3895658', 'n_tokens_mistral': 1104, 'n_tokens_neox': 897, 'n_words': 216}