Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r11 r12 1 PREFIX=/usr/local 1 PREFIX ?= /usr/local 2 3 GOARCH ?= amd64 4 GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build" 5 GOOS ?= linux 6 7 BRANCH = `git rev-parse --abbrev-ref HEAD` 8 BUILD = `git show -s --pretty=format:%cI` 9 COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"` 10 VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"` 2 11 3 12 build: 4 go build 13 go build $(GOFLAGS) ./cmd/stcli 5 14 strip stcli 6 15 clean: -
trunk/README
r9 r12 5 5 Usage 6 6 ----- 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) 17 10 11 Environment variables 12 --------------------- 13 * STCLI_ENGINE 14 * STCLI_INSTANCE
Note:
See TracChangeset
for help on using the changeset viewer.