Changeset 31 in code
- Timestamp:
- May 14, 2025, 3:38:01 PM (3 weeks ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/COPYING
r27 r31 2 2 * ---------------------------------------------------------------------------- 3 3 * "THE BEER-WARE LICENSE" (Revision 42.1): 4 * < yakumo.izuru@chaotic.ninja> wrote this file. As long as you retain this notice you4 * <eternal-servant@yakumo.dev> wrote this file. As long as you retain this notice you 5 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 6 * this stuff is worth it, you can buy me a bottle of sake in return Izuru Yakumo -
trunk/README.md
r27 r31 1 SUWAKO(1) - FreeBSDGeneral Commands Manual1 SUWAKO(1) - General Commands Manual 2 2 3 3 # NAME … … 8 8 9 9 **suwako** 10 \[**-f** *from*] 11 \[**-t** *to*] 12 \[*input*] 10 **-f** *from* 11 **-t** *to* 12 *input* 13 13 14 14 # DESCRIPTION … … 17 17 a rewrite from a shell script that had curl 18 18 and awk for dependencies. 19 It fully serves 20 as a drop-in replacement. 19 It fully serves as a drop-in replacement. 21 20 22 21 # USAGE … … 41 40 # AUTHORS 42 41 43 Izuru Yakumo <[ yakumo.izuru@chaotic.ninja](mailto:yakumo.izuru@chaotic.ninja)>42 Izuru Yakumo <[eternal-servant@yakumo.dev](mailto:eternal-servant@yakumo.dev)> 44 43 45 44 # BUGS 46 45 47 You cannot translate the string "version", this is 48 a direct consequence of using flaggy.46 Mozhi instances use translated-text as opposed to translated\_text 47 coming from SimplyTranslate instances. 49 48 50 FreeBSD 13.2-RELEASE-p4 - December 16, 2023 49 NetBSD 10.1 - May 14, 2025 -
trunk/go.mod
r26 r31 1 1 module marisa.chaotic.ninja/suwako 2 2 3 go 1.18 3 go 1.21.0 4 5 toolchain go1.23.8 4 6 5 7 require ( 6 github.com/ integrii/flaggy v1.5.28 github.com/spf13/cobra v1.9.1 7 9 gopkg.in/ini.v1 v1.67.0 8 10 ) 9 11 10 require github.com/stretchr/testify v1.8.4 // indirect 12 require ( 13 github.com/inconshreveable/mousetrap v1.1.0 // indirect 14 github.com/spf13/pflag v1.0.6 // indirect 15 github.com/stretchr/testify v1.10.0 // indirect 16 ) -
trunk/go.sum
r26 r31 1 github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= 1 2 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= 3 github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 4 github.com/integrii/flaggy v1.5.2 h1:bWV20MQEngo4hWhno3i5Z9ISPxLPKj9NOGNwTWb/8IQ= 5 github.com/integrii/flaggy v1.5.2/go.mod h1:dO13u7SYuhk910nayCJ+s1DeAAGC1THCMj1uSFmwtQ8= 3 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 4 github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= 5 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= 6 6 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 7 github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= 8 github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= 9 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 7 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 8 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 9 github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= 10 github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= 11 github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= 12 github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 13 github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= 14 github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 15 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 10 16 gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= 11 17 gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 12 18 gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 19 gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -
trunk/suwako.1
r27 r31 1 .Dd $Mdocdate$1 .Dd May 14, 2025 2 2 .Dt SUWAKO 1 3 3 .Os … … 7 7 .Sh SYNOPSIS 8 8 .Nm 9 . OpFl f Ar from10 . OpFl t Ar to11 . OpAr input9 .Fl f Ar from 10 .Fl t Ar to 11 .Ar input 12 12 .Sh DESCRIPTION 13 13 Self-explanatory, besides, this was made as 14 14 a rewrite from a shell script that had curl 15 15 and awk for dependencies. 16 It fully serves 17 as a drop-in replacement. 16 It fully serves as a drop-in replacement. 18 17 .Sh USAGE 19 18 .Bl -tag -width 11n -compact … … 29 28 .Xr suwako.conf 5 30 29 .Sh AUTHORS 31 .An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja30 .An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev 32 31 .Sh BUGS 33 You cannot translate the string "version", this is 34 a direct consequence of using flaggy.32 Mozhi instances use translated-text as opposed to translated_text 33 coming from SimplyTranslate instances. -
trunk/suwako.conf.5
r27 r31 1 .Dd $Mdocdate$1 .Dd May 14, 2025 2 2 .Dt SUWAKO.CONF 5 3 3 .Os 4 4 .Sh NAME 5 5 .Nm suwako.conf 6 .Nd INI-style configuration file for 7 .Xr suwako 1 6 .Nd INI-style configuration file for suwako 8 7 .Sh DESCRIPTION 9 8 The … … 12 11 including the API path and the 13 12 translation engine to be used on 14 the 15 .Xr suwako 1 16 command. 13 .Nm suwako 17 14 .Sh OPTIONS 18 15 .Bl -tag -width 11n -compact 19 .It instance 20 Contains the HTTPS URI to the 21 server's up to the 22 .Sy /api/translate 23 endpoint. 16 .It endpoint 17 Contains the HTTPS URI to the instance 24 18 .It engine 25 19 For most use cases, the … … 31 25 .El 32 26 .Sh FILES 33 .Pa ~/. suwako/suwako.conf27 .Pa ~/.config/suwako.ini 34 28 path to this file 35 29 .Sh AUTHORS 36 .An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja30 .An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev
Note:
See TracChangeset
for help on using the changeset viewer.