<commit_before>package cmd

import (
	"fmt"

	"github.com/praqma/git-phlow/cmd/cmdperm"
	"github.com/praqma/git-phlow/options"
	"github.com/praqma/git-phlow/phlow"
	"github.com/praqma/git-phlow/ui"
	"github.com/spf13/cobra"
)

var wrapupCmd = &cobra.Command{
	Use:   "wrapup",
	Short: "Add changes to index and auto commit",
	Long: fmt.Sprintf(`
%s commits the currently staged files with a 'close issue' commit message, e.g. "close #42 fetch meaning of life". The commit message will cause the corresponding issue to be closed when the commit is integrated. When force is used on the message, the message will replace, the otherwice automatically generated commit message.

`, ui.Format.Bold("wrapup")),
	PreRun: func(cmd *cobra.Command, args []string) {
		cmdperm.RequiredCurDirRepository()
	},
	Run: func(cmd *cobra.Command, args []string) {
		phlow.WrapUp()
	},
}

func init() {
	RootCmd.AddCommand(wrapupCmd)

	wrapupCmd.Flags().StringVar(&options.GlobalFlagForceMessage, "force", "", "use a custom commit message in stead")
}<commit_msg>close #117 changed wrap up description to new features<commit_after>package cmd

import (
	"fmt"

	"github.com/praqma/git-phlow/cmd/cmdperm"
	"github.com/praqma/git-phlow/options"
	"github.com/praqma/git-phlow/phlow"
	"github.com/praqma/git-phlow/ui"
	"github.com/spf13/cobra"
)

var wrapupCmd = &cobra.Command{
	Use:   "wrapup",
	Short: "Add changes to index and auto commit",
	Long: fmt.Sprintf(`
%s adds the files in the workin directory to the index and makes a commit. The commit message is autogenerated and contains 'close issue', e.g. "close #42 fetch meaning of life". The issue number is fetched from the branch name, if the workon command have been used. When force is used on the message, the message will replace, the otherwice automatically generated commit message.
`, ui.Format.Bold("wrapup")),
	PreRun: func(cmd *cobra.Command, args []string) {
		cmdperm.RequiredCurDirRepository()
	},
	Run: func(cmd *cobra.Command, args []string) {
		phlow.WrapUp()
	},
}

func init() {
	RootCmd.AddCommand(wrapupCmd)

	wrapupCmd.Flags().StringVar(&options.GlobalFlagForceMessage, "force", "", "use a custom commit message in stead")
}
{'fraction_non_alphanumeric': 0.1243119266055046, 'fraction_numerical': 0.005045871559633028, 'mean_word_length': 4.724409448818897, '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': '4757650', 'n_tokens_mistral': 762, 'n_tokens_neox': 743, 'n_words': 222}