refactor: use core/go-i18n module instead of core/go/pkg/i18n
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
ea7d744cce
commit
945be23adc
24 changed files with 24 additions and 24 deletions
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// check represents a tool check configuration
|
// check represents a tool check configuration
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/io"
|
"forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/repos"
|
"forge.lthn.ai/core/go/pkg/repos"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// printInstallInstructions prints OS-specific installation instructions
|
// printInstallInstructions prints OS-specific installation instructions
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/marketplace"
|
"forge.lthn.ai/core/go/pkg/marketplace"
|
||||||
"forge.lthn.ai/core/go/pkg/store"
|
"forge.lthn.ai/core/go/pkg/store"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/marketplace"
|
"forge.lthn.ai/core/go/pkg/marketplace"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
func addListCommand(parent *cli.Command) {
|
func addListCommand(parent *cli.Command) {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package module
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
func addRemoveCommand(parent *cli.Command) {
|
func addRemoveCommand(parent *cli.Command) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
var updateAll bool
|
var updateAll bool
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
coreio "forge.lthn.ai/core/go/pkg/io"
|
coreio "forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/repos"
|
"forge.lthn.ai/core/go/pkg/repos"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
coreio "forge.lthn.ai/core/go/pkg/io"
|
coreio "forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/repos"
|
"forge.lthn.ai/core/go/pkg/repos"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package pkgcmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
coreio "forge.lthn.ai/core/go/pkg/io"
|
coreio "forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/repos"
|
"forge.lthn.ai/core/go/pkg/repos"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/cache"
|
"forge.lthn.ai/core/go/pkg/cache"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
coreio "forge.lthn.ai/core/go/pkg/io"
|
coreio "forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/repos"
|
"forge.lthn.ai/core/go/pkg/repos"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AddPluginCommands registers the 'plugin' command and all subcommands.
|
// AddPluginCommands registers the 'plugin' command and all subcommands.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/io"
|
"forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/plugin"
|
"forge.lthn.ai/core/go/pkg/plugin"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/io"
|
"forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/plugin"
|
"forge.lthn.ai/core/go/pkg/plugin"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/io"
|
"forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/plugin"
|
"forge.lthn.ai/core/go/pkg/plugin"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/io"
|
"forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/plugin"
|
"forge.lthn.ai/core/go/pkg/plugin"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"forge.lthn.ai/core/cli/pkg/cli"
|
"forge.lthn.ai/core/cli/pkg/cli"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/io"
|
"forge.lthn.ai/core/go/pkg/io"
|
||||||
"forge.lthn.ai/core/go/pkg/plugin"
|
"forge.lthn.ai/core/go/pkg/plugin"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ─────────────────────────────────────────────────────────────────────────────
|
// ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/framework"
|
"forge.lthn.ai/core/go/pkg/framework"
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// I18nService wraps i18n as a Core service.
|
// I18nService wraps i18n as a Core service.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Blank prints an empty line.
|
// Blank prints an empty line.
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"forge.lthn.ai/core/go/pkg/i18n"
|
"forge.lthn.ai/core/go-i18n"
|
||||||
"forge.lthn.ai/core/go/pkg/log"
|
"forge.lthn.ai/core/go/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue