Release v1.3:

* Rename to stcli
* Removed useless imports
* Removed a no-op function call
* Update README

Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>

git-svn-id: file:///srv/svn/repo/suwako/trunk@7 0b558ee1-521d-8b46-a41b-40029c97c055
This commit is contained in:
koizumi.aoi 2022-12-14 03:01:36 +00:00
parent 2fdb84154f
commit faedcfb02e
5 changed files with 10 additions and 12 deletions

View File

@ -3,9 +3,9 @@ PREFIX=/usr/local
build:
go build
clean:
rm -f stcli-go
rm -f stcli
install: build
install -Dm0755 stcli-go ${PREFIX}/bin/stcli-go
install -Dm0755 stcli ${PREFIX}/bin/stcli
uninstall:
rm -f ${PREFIX}/bin/stcli-go
rm -f ${PREFIX}/share/man/man1/stcli-go.1
rm -f ${PREFIX}/bin/stcli
rm -f ${PREFIX}/share/man/man1/stcli.1

4
README
View File

@ -1,3 +1,3 @@
stcli-go
========
stcli
=====
Command-line client for SimplyTranslate in Go.

2
go.mod
View File

@ -1,3 +1,3 @@
module git.kyoko-project.wer.ee/koizumi.aoi/stcli-go
module gitler.moe/novaburst/stcli
go 1.18

View File

@ -1,5 +1,5 @@
// $KyokoNet: stcli-go,v 1.2 2022/12/13 22:13:00 akoizumi Exp
// Command line client for SimplyTranslate, a privacy friendly frontend to Google Translate
// $KyokoNet: stcli,v 1.3 2022/12/13 23:57:00 akoizumi Exp
// Command line client for SimplyTranslate, a privacy friendly frontend to other translation engines
package main
import (
@ -10,7 +10,6 @@ import (
"log"
"net/http"
"net/url"
"os"
)
var (
engine string
@ -36,7 +35,6 @@ func main() {
// It actually needs the two to have content.
if len(input) == 0 || len(to) == 0 {
log.Fatal("Missing either the text or the target language.")
os.Exit(1)
}
// Map a variable to the struct
var translate Translate

View File

@ -1,5 +1,5 @@
.Dd Aftermath 57, 3188
.Dt STCLI-GO 1
.Dt STCLI 1
.Os
.Sh NAME
.Nm stcli-go