Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcj committed Aug 2, 2024
1 parent 6088409 commit 8107707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func run(cmd *cobra.Command, args []string) error {
}

// Setup progress spinner
spinner := utils.SetupSpinner("Traversing directory and building tree...")
spinner := utils.SetupSpinner("Traversing directory and building tree..")
defer spinner.Finish()

// If verbose, print active excludes
Expand Down Expand Up @@ -290,6 +290,7 @@ func reportLargestFiles(files []filesystem.FileInfo) {
func handleOutput(rendered string, countTokens bool, encoding string, noClipboard bool, output string, jsonOutput bool, report bool, files []filesystem.FileInfo) error {
if countTokens {
tokenCount := token.CountTokens(rendered, encoding)
println()
utils.PrintColouredMessage("ℹ️", fmt.Sprintf("Tokens (Approximate): %v", utils.FormatNumber(tokenCount)), color.FgYellow)
}

Expand Down

0 comments on commit 8107707

Please sign in to comment.