<commit_before>// Copyright (c) 2016, <NAME>. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.

package main

import (
	"text/template"

	"github.com/cassava/repoctl/internal/term"
	"github.com/spf13/cobra"
)

func init() {
	MainCmd.AddCommand(versionCmd)
}

var versionCmd = &cobra.Command{
	Use:                   "version",
	Short:                 "Show version information and current configuration",
	Long:                  "Show version information of repoctl, as well as the current configuration.",
	ValidArgsFunction:     completeNoFiles,
	Args:                  cobra.ExactArgs(0),
	DisableFlagsInUseLine: true,
	Run: func(cmd *cobra.Command, args []string) {
		exceptQuiet()

		var progInfo = struct {
			Name      string
			Author    string
			Email     string
			Version   string
			Date      string
			Homepage  string
			Copyright string
			License   string
		}{
			Name:      "repoctl",
			Author:    "<NAME>",
			Email:     "<EMAIL>",
			Version:   "0.21 pre-release",
			Date:      "16 August, 2020",
			Copyright: "2016-2020",
			Homepage:  "https://github.com/cassava/repoctl",
			License:   "MIT",<commit_msg>Release version 0.21<commit_after>// Copyright (c) 2016, <NAME>. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.

package main

import (
	"text/template"

	"github.com/cassava/repoctl/internal/term"
	"github.com/spf13/cobra"
)

func init() {
	MainCmd.AddCommand(versionCmd)
}

var versionCmd = &cobra.Command{
	Use:                   "version",
	Short:                 "Show version information and current configuration",
	Long:                  "Show version information of repoctl, as well as the current configuration.",
	ValidArgsFunction:     completeNoFiles,
	Args:                  cobra.ExactArgs(0),
	DisableFlagsInUseLine: true,
	Run: func(cmd *cobra.Command, args []string) {
		exceptQuiet()

		var progInfo = struct {
			Name      string
			Author    string
			Email     string
			Version   string
			Date      string
			Homepage  string
			Copyright string
			License   string
		}{
			Name:      "repoctl",
			Author:    "<NAME>",
			Email:     "<EMAIL>",
			Version:   "0.21",
			Date:      "30 August, 2020",
			Copyright: "2016-2020",
			Homepage:  "https://github.com/cassava/repoctl",
			License:   "MIT",
{'fraction_non_alphanumeric': 0.10763454317897372, 'fraction_numerical': 0.02127659574468085, 'mean_word_length': 2.5368731563421827, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3333001', 'n_tokens_mistral': 854, 'n_tokens_neox': 741, 'n_words': 220}