Skip to content

Commit

Permalink
🔨 add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Omochice committed Jul 22, 2021
1 parent 42e3d60 commit 1527a43
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ import (
"net/url"
"os"
"path/filepath"
"runtime"

"github.com/mattn/go-isatty"
"github.com/urfave/cli/v2"
)

var (
version = "develop"
commit = "none"
date = "unkdown"
buildBy = "unkdown"
)

type Setting struct {
AuthKey string `json:"-"`
SourceLang string `json:"source_lang"`
Expand Down Expand Up @@ -136,6 +144,11 @@ func main() {
Name: "deepl",
Usage: "Translate sentences.",
UsageText: "deepl [-s|-t] <inputfile | --stdin> ",
Version: fmt.Sprintf("%s (rev %s) [%s %s %s] [build at %s by %s]", version, commit, runtime.GOOS, runtime.GOARCH, runtime.Version(), date, buildBy),
Authors: []*cli.Author{
&cli.Author{
Name: "Omochice"},
},

Flags: []cli.Flag{
&cli.BoolFlag{
Expand Down

0 comments on commit 1527a43

Please sign in to comment.