Changeset 31 in code


Ignore:
Timestamp:
May 14, 2025, 3:38:01 PM (3 weeks ago)
Author:
yakumo.izuru
Message:

すべてを書き直し、3.0.0をリリースします

Location:
trunk
Files:
2 added
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/COPYING

    r27 r31  
    22 * ----------------------------------------------------------------------------
    33 * "THE BEER-WARE LICENSE" (Revision 42.1):
    4  * <yakumo.izuru@chaotic.ninja> wrote this file. As long as you retain this notice you
     4 * <eternal-servant@yakumo.dev> wrote this file. As long as you retain this notice you
    55 * can do whatever you want with this stuff. If we meet some day, and you think
    66 * 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) - FreeBSD General Commands Manual
     1SUWAKO(1) - General Commands Manual
    22
    33# NAME
     
    88
    99**suwako**
    10 \[**-f**&nbsp;*from*]
    11 \[**-t**&nbsp;*to*]
    12 \[*input*]
     10**-f**&nbsp;*from*
     11**-t**&nbsp;*to*
     12*input*
    1313
    1414# DESCRIPTION
     
    1717a rewrite from a shell script that had curl
    1818and awk for dependencies.
    19 It fully serves
    20 as a drop-in replacement.
     19It fully serves as a drop-in replacement.
    2120
    2221# USAGE
     
    4140# AUTHORS
    4241
    43 Izuru Yakumo &lt;[yakumo.izuru@chaotic.ninja](mailto:yakumo.izuru@chaotic.ninja)&gt;
     42Izuru Yakumo &lt;[eternal-servant@yakumo.dev](mailto:eternal-servant@yakumo.dev)&gt;
    4443
    4544# BUGS
    4645
    47 You cannot translate the string "version", this is
    48 a direct consequence of using flaggy.
     46Mozhi instances use translated-text as opposed to translated\_text
     47coming from SimplyTranslate instances.
    4948
    50 FreeBSD 13.2-RELEASE-p4 - December 16, 2023
     49NetBSD 10.1 - May 14, 2025
  • trunk/go.mod

    r26 r31  
    11module marisa.chaotic.ninja/suwako
    22
    3 go 1.18
     3go 1.21.0
     4
     5toolchain go1.23.8
    46
    57require (
    6         github.com/integrii/flaggy v1.5.2
     8        github.com/spf13/cobra v1.9.1
    79        gopkg.in/ini.v1 v1.67.0
    810)
    911
    10 require github.com/stretchr/testify v1.8.4 // indirect
     12require (
     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  
     1github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
    12github.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=
     3github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
     4github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
     5github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
    66github.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=
     7github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
     8github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
     9github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
     10github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
     11github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
     12github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
     13github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
     14github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
     15gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
    1016gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
    1117gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
    1218gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
     19gopkg.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
    22.Dt SUWAKO 1
    33.Os
     
    77.Sh SYNOPSIS
    88.Nm
    9 .Op Fl f Ar from
    10 .Op Fl t Ar to
    11 .Op Ar input
     9.Fl f Ar from
     10.Fl t Ar to
     11.Ar input
    1212.Sh DESCRIPTION
    1313Self-explanatory, besides, this was made as
    1414a rewrite from a shell script that had curl
    1515and awk for dependencies.
    16 It fully serves
    17 as a drop-in replacement.
     16It fully serves as a drop-in replacement.
    1817.Sh USAGE
    1918.Bl -tag -width 11n -compact
     
    2928.Xr suwako.conf 5
    3029.Sh AUTHORS
    31 .An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
     30.An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev
    3231.Sh BUGS
    33 You cannot translate the string "version", this is
    34 a direct consequence of using flaggy.
     32Mozhi instances use translated-text as opposed to translated_text
     33coming from SimplyTranslate instances.
  • trunk/suwako.conf.5

    r27 r31  
    1 .Dd $Mdocdate$
     1.Dd May 14, 2025
    22.Dt SUWAKO.CONF 5
    33.Os
    44.Sh NAME
    55.Nm suwako.conf
    6 .Nd INI-style configuration file for
    7 .Xr suwako 1
     6.Nd INI-style configuration file for suwako
    87.Sh DESCRIPTION
    98The
     
    1211including the API path and the
    1312translation engine to be used on
    14 the
    15 .Xr suwako 1
    16 command.
     13.Nm suwako
    1714.Sh OPTIONS
    1815.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
     17Contains the HTTPS URI to the instance
    2418.It engine
    2519For most use cases, the
     
    3125.El
    3226.Sh FILES
    33 .Pa ~/.suwako/suwako.conf
     27.Pa ~/.config/suwako.ini
    3428path to this file
    3529.Sh AUTHORS
    36 .An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
     30.An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev
Note: See TracChangeset for help on using the changeset viewer.