<commit_before>package cmd

import (
	"fmt"

	"github.com/exercism/cli/cli"
	"github.com/spf13/cobra"
)

// Version is the version of the current build.
// It follows semantic versioning.
const Version = "3.0.0"

// checkLatest flag for version command.
var checkLatest bool

// versionCmd outputs the version of the CLI.
var versionCmd = &cobra.Command{
	Use:     "version",
	Aliases: []string{"v"},
	Short:   "Version outputs the version of CLI.",
	Long: `Version outputs the version of the exercism binary that is in use.

To check for the latest available version, call the command with the
--latest flag.
	`,

	RunE: func(cmd *cobra.Command, args []string) error {
		fmt.Println(currentVersion())

		if checkLatest {
			c := cli.New(Version)
			l, err := checkForUpdate(c)
			if err != nil {
				return err
			}

			fmt.Println(l)
		}<commit_msg>Bump to v3.0.1<commit_after>package cmd

import (
	"fmt"

	"github.com/exercism/cli/cli"
	"github.com/spf13/cobra"
)

// Version is the version of the current build.
// It follows semantic versioning.
const Version = "3.0.1"

// checkLatest flag for version command.
var checkLatest bool

// versionCmd outputs the version of the CLI.
var versionCmd = &cobra.Command{
	Use:     "version",
	Aliases: []string{"v"},
	Short:   "Version outputs the version of CLI.",
	Long: `Version outputs the version of the exercism binary that is in use.

To check for the latest available version, call the command with the
--latest flag.
	`,

	RunE: func(cmd *cobra.Command, args []string) error {
		fmt.Println(currentVersion())

		if checkLatest {
			c := cli.New(Version)
			l, err := checkForUpdate(c)
			if err != nil {
				return err
			}

			fmt.Println(l)
		}
{'fraction_non_alphanumeric': 0.11626541397533764, 'fraction_numerical': 0.007633587786259542, 'mean_word_length': 3.3580562659846547, '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': '453149', 'n_tokens_mistral': 623, 'n_tokens_neox': 573, 'n_words': 196}