mirror of
https://github.com/spf13/cobra
synced 2024-11-16 18:57:08 +00:00
chore(i18n): lint
This commit is contained in:
parent
20e0d82e97
commit
f7f98c4373
7 changed files with 14 additions and 7 deletions
3
args.go
3
args.go
|
@ -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
|
||||
|
|
3
cobra.go
3
cobra.go
|
@ -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{
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -16,11 +16,12 @@ package cobra
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
|
|
|
@ -16,10 +16,11 @@ package cobra
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
flag "github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
|
|
|
@ -18,8 +18,9 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"golang.org/x/text/language"
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
)
|
||||
|
||||
var defaultLanguage = language.English
|
||||
|
|
|
@ -15,9 +15,10 @@
|
|||
package cobra
|
||||
|
||||
import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
)
|
||||
|
||||
// resetLocalization resets to the vendor defaults
|
||||
|
|
Loading…
Reference in a new issue