<commit_before>package gcron

import (
	"log"
	"os/exec"
)

type Task struct {
	Command  string
	Schedule string
}

// Run the task on the command line
func (t *Task) Run() {
	cmd := exec.Command("/bin/sh", "-c", t.Command)

	out, err := cmd.Output()
	if err != nil {
		log.Println(err)
	}

	// TODO Provide an io.Writer as Stdout and Stderr to capture the whole output
	// The following line only returns the last line of the output
	log.Println(string(out))
}<commit_msg>Adding a bit more logging output<commit_after>package gcron

import (
	"log"
	"os/exec"
)

type Task struct {
	Command  string
	Schedule string
}

// Run the task on the command line
func (t *Task) Run() {
	log.Printf("-> %s\n", t.Command)
	cmd := exec.Command("/bin/sh", "-c", t.Command)

	out, err := cmd.Output()
	if err != nil {
		log.Println(err)
	}

	// TODO Provide an io.Writer as Stdout and Stderr to capture the whole output
	// The following line only returns the last line of the output
	log.Println(string(out))

	log.Println("-> Task done.")
}
{'fraction_non_alphanumeric': 0.13300970873786408, 'fraction_numerical': 0.0, 'mean_word_length': 3.3686440677966103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1592280', 'n_tokens_mistral': 371, 'n_tokens_neox': 360, 'n_words': 129}