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:
8
Makefile
8
Makefile
@@ -3,9 +3,9 @@ PREFIX=/usr/local
|
|||||||
build:
|
build:
|
||||||
go build
|
go build
|
||||||
clean:
|
clean:
|
||||||
rm -f stcli-go
|
rm -f stcli
|
||||||
install: build
|
install: build
|
||||||
install -Dm0755 stcli-go ${PREFIX}/bin/stcli-go
|
install -Dm0755 stcli ${PREFIX}/bin/stcli
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${PREFIX}/bin/stcli-go
|
rm -f ${PREFIX}/bin/stcli
|
||||||
rm -f ${PREFIX}/share/man/man1/stcli-go.1
|
rm -f ${PREFIX}/share/man/man1/stcli.1
|
||||||
|
|||||||
4
README
4
README
@@ -1,3 +1,3 @@
|
|||||||
stcli-go
|
stcli
|
||||||
========
|
=====
|
||||||
Command-line client for SimplyTranslate in Go.
|
Command-line client for SimplyTranslate in Go.
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,3 +1,3 @@
|
|||||||
module git.kyoko-project.wer.ee/koizumi.aoi/stcli-go
|
module gitler.moe/novaburst/stcli
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|||||||
6
main.go
6
main.go
@@ -1,5 +1,5 @@
|
|||||||
// $KyokoNet: stcli-go,v 1.2 2022/12/13 22:13:00 akoizumi Exp
|
// $KyokoNet: stcli,v 1.3 2022/12/13 23:57:00 akoizumi Exp
|
||||||
// Command line client for SimplyTranslate, a privacy friendly frontend to Google Translate
|
// Command line client for SimplyTranslate, a privacy friendly frontend to other translation engines
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -10,7 +10,6 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
var (
|
var (
|
||||||
engine string
|
engine string
|
||||||
@@ -36,7 +35,6 @@ func main() {
|
|||||||
// It actually needs the two to have content.
|
// It actually needs the two to have content.
|
||||||
if len(input) == 0 || len(to) == 0 {
|
if len(input) == 0 || len(to) == 0 {
|
||||||
log.Fatal("Missing either the text or the target language.")
|
log.Fatal("Missing either the text or the target language.")
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
// Map a variable to the struct
|
// Map a variable to the struct
|
||||||
var translate Translate
|
var translate Translate
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.Dd Aftermath 57, 3188
|
.Dd Aftermath 57, 3188
|
||||||
.Dt STCLI-GO 1
|
.Dt STCLI 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm stcli-go
|
.Nm stcli-go
|
||||||
Reference in New Issue
Block a user