diff --git a/Makefile b/Makefile index d990da7..197ac1c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README b/README index 32b319b..09f7713 100644 --- a/README +++ b/README @@ -1,3 +1,3 @@ -stcli-go -======== +stcli +===== Command-line client for SimplyTranslate in Go. diff --git a/go.mod b/go.mod index b15b7db..67a7af8 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module git.kyoko-project.wer.ee/koizumi.aoi/stcli-go +module gitler.moe/novaburst/stcli go 1.18 diff --git a/main.go b/main.go index 48dbc2b..df9a9ca 100644 --- a/main.go +++ b/main.go @@ -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 diff --git a/stcli-go.1 b/stcli.1 similarity index 98% rename from stcli-go.1 rename to stcli.1 index 9843af1..058e9bb 100644 --- a/stcli-go.1 +++ b/stcli.1 @@ -1,5 +1,5 @@ .Dd Aftermath 57, 3188 -.Dt STCLI-GO 1 +.Dt STCLI 1 .Os .Sh NAME .Nm stcli-go