chore(i18n): lint

This commit is contained in:
Goutte 2024-01-10 16:37:15 +01:00
parent 20e0d82e97
commit f7f98c4373
7 changed files with 14 additions and 7 deletions

View file

@ -16,8 +16,9 @@ package cobra
import (
"fmt"
"github.com/leonelquinteros/gotext"
"strings"
"github.com/leonelquinteros/gotext"
)
type PositionalArgs func(cmd *Command, args []string) error

View file

@ -19,7 +19,6 @@ package cobra
import (
"fmt"
"github.com/leonelquinteros/gotext"
"io"
"os"
"reflect"
@ -28,6 +27,8 @@ import (
"text/template"
"time"
"unicode"
"github.com/leonelquinteros/gotext"
)
var templateFuncs = template.FuncMap{

View file

@ -21,13 +21,14 @@ import (
"context"
"errors"
"fmt"
"github.com/leonelquinteros/gotext"
"io"
"os"
"path/filepath"
"sort"
"strings"
"github.com/leonelquinteros/gotext"
flag "github.com/spf13/pflag"
)

View file

@ -16,11 +16,12 @@ package cobra
import (
"fmt"
"github.com/leonelquinteros/gotext"
"os"
"strings"
"sync"
"github.com/leonelquinteros/gotext"
"github.com/spf13/pflag"
)

View file

@ -16,10 +16,11 @@ package cobra
import (
"fmt"
"github.com/leonelquinteros/gotext"
"sort"
"strings"
"github.com/leonelquinteros/gotext"
flag "github.com/spf13/pflag"
)

View file

@ -18,8 +18,9 @@ import (
"fmt"
"os"
"github.com/leonelquinteros/gotext"
"golang.org/x/text/language"
"github.com/leonelquinteros/gotext"
)
var defaultLanguage = language.English

View file

@ -15,9 +15,10 @@
package cobra
import (
"github.com/leonelquinteros/gotext"
"os"
"testing"
"github.com/leonelquinteros/gotext"
)
// resetLocalization resets to the vendor defaults