package command

import (
	"fmt"
	"os/exec"
	"strings"
)

type CurrentCommand struct {
	Meta
}

func (c *CurrentCommand) Run(args []string) int {
	// Write your code here
	out, err := exec.Command("git", "describe", "--tags").Output()
	if err != nil {
		fmt.Printf("Error: This repo is not gitschwifty enabled (see https://github.com/mblarsen/gitschwifty for instructions)\n")
		return 1
	}
	fmt.Printf("%s", out)
	return 0
}

func (c *CurrentCommand) Synopsis() string {
	return "Show current step"
}

func (c *CurrentCommand) Help() string {
	helpText := `

`
	return strings.TrimSpace(helpText)
}
