Changeset 12 in code


Ignore:
Timestamp:
Mar 25, 2023, 4:43:22 PM (2 years ago)
Author:
koizumi.aoi
Message:

feat: stop hardcoding default instance and engine, also other minor changes.

Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r11 r12  
    1 PREFIX=/usr/local
     1PREFIX ?= /usr/local
     2
     3GOARCH ?= amd64
     4GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
     5GOOS ?= linux
     6
     7BRANCH = `git rev-parse --abbrev-ref HEAD`
     8BUILD = `git show -s --pretty=format:%cI`
     9COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
     10VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
    211
    312build:
    4         go build
     13        go build $(GOFLAGS) ./cmd/stcli
    514        strip stcli
    615clean:
  • trunk/README

    r9 r12  
    55Usage
    66-----
    7 -I string
    8         Enter the text to be translated
    9 -e string
    10         Translation engine to use (default: google) (default "google")
    11 -f string
    12         Set the language to translate from. This can be skipped as it will autodetect the language you're translating from (default "auto")
    13 -i string
    14         Instance to use (default: https://simplytranslate.org/api/translate/) (default "https://simplytranslate.org/api/translate/")
    15 -t string
    16         Set the language to translate to (default: en) (default "en")
     7-f [lang] (default: auto)
     8-i [input]
     9-t [lang] (default: en)
    1710
     11Environment variables
     12---------------------
     13* STCLI_ENGINE
     14* STCLI_INSTANCE
Note: See TracChangeset for help on using the changeset viewer.