Skip to content

Commit

Permalink
Include version command
Browse files Browse the repository at this point in the history
  • Loading branch information
barthr committed Apr 9, 2023
1 parent 611ca1a commit ea867ee
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,23 @@ package main
import (
"flag"
"fmt"
"log"
"os"
"os/exec"

"github.com/barthr/redo/config"
"github.com/barthr/redo/repository"
"github.com/barthr/redo/ui"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"log"
"os"
"os/exec"
)

var (
cfg = new(config.Config)

version string

date string
)

const (
Expand Down Expand Up @@ -61,6 +66,8 @@ func main() {
case "edit":
openEditor()
os.Exit(0)
case "version":
fmt.Println("Redo was built on", date, "with version", version)
default:
log.Fatalf("Command: %s not found", os.Args[1])
}
Expand Down

0 comments on commit ea867ee

Please sign in to comment.