chore(go): rename module

This commit is contained in:
Jan De Dobbeleer 2022-12-28 17:30:48 +01:00 committed by Jan De Dobbeleer
parent 04bfb2eef1
commit 023546fe37
180 changed files with 555 additions and 417 deletions

View file

@ -2,12 +2,13 @@ package cli
import (
"fmt"
"oh-my-posh/platform"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/spf13/cobra"
)

View file

@ -2,11 +2,12 @@ package cli
import (
"fmt"
"oh-my-posh/engine"
"oh-my-posh/platform"
"path/filepath"
"strings"
"github.com/jandedobbeleer/oh-my-posh/engine"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/spf13/cobra"
)

View file

@ -2,11 +2,12 @@ package cli
import (
"fmt"
"oh-my-posh/color"
"oh-my-posh/console"
"oh-my-posh/engine"
"oh-my-posh/platform"
"oh-my-posh/shell"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/console"
"github.com/jandedobbeleer/oh-my-posh/engine"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/spf13/cobra"
)

View file

@ -2,8 +2,9 @@ package cli
import (
"fmt"
"oh-my-posh/engine"
"oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/engine"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/spf13/cobra"
)

View file

@ -2,13 +2,14 @@ package cli
import (
"fmt"
"oh-my-posh/color"
"oh-my-posh/console"
"oh-my-posh/engine"
"oh-my-posh/platform"
"oh-my-posh/shell"
"time"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/console"
"github.com/jandedobbeleer/oh-my-posh/engine"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/spf13/cobra"
)

View file

@ -2,8 +2,9 @@ package cli
import (
"fmt"
"oh-my-posh/font"
"oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/font"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/spf13/cobra"
)

View file

@ -2,11 +2,12 @@ package cli
import (
"fmt"
"oh-my-posh/color"
"oh-my-posh/platform"
"strings"
"time"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/platform"
color2 "github.com/gookit/color"
"github.com/spf13/cobra"
)

View file

@ -2,9 +2,10 @@ package cli
import (
"fmt"
"oh-my-posh/engine"
"oh-my-posh/platform"
"oh-my-posh/shell"
"github.com/jandedobbeleer/oh-my-posh/engine"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/spf13/cobra"
)

View file

@ -2,8 +2,9 @@ package cli
import (
"fmt"
"oh-my-posh/engine"
"oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/engine"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/spf13/cobra"
)

View file

@ -1,9 +1,10 @@
package cli
import (
"oh-my-posh/platform"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/spf13/cobra"
)

View file

@ -2,9 +2,10 @@ package color
import (
"fmt"
"oh-my-posh/regex"
"oh-my-posh/shell"
"strings"
"github.com/jandedobbeleer/oh-my-posh/regex"
"github.com/jandedobbeleer/oh-my-posh/shell"
)
const (

View file

@ -1,9 +1,10 @@
package color
import (
"oh-my-posh/shell"
"testing"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/stretchr/testify/assert"
)

View file

@ -2,10 +2,11 @@ package color
import (
"fmt"
"oh-my-posh/platform"
"strconv"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/gookit/color"
)

View file

@ -2,7 +2,7 @@
package color
import "oh-my-posh/platform"
import "github.com/jandedobbeleer/oh-my-posh/platform"
func GetAccentColor(env platform.Environment) (*RGB, error) {
return nil, &platform.NotImplemented{}

View file

@ -2,7 +2,8 @@ package color
import (
"errors"
"oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/gookit/color"
)

View file

@ -1,8 +1,9 @@
package color
import (
"oh-my-posh/regex"
"strings"
"github.com/jandedobbeleer/oh-my-posh/regex"
)
// PlainWriter writes a plain string

View file

@ -1,9 +1,10 @@
package color
import (
"oh-my-posh/regex"
"strings"
"github.com/jandedobbeleer/oh-my-posh/regex"
"github.com/mattn/go-runewidth"
)

View file

@ -2,12 +2,13 @@ package color
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/shell"
"oh-my-posh/template"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/jandedobbeleer/oh-my-posh/template"
"github.com/stretchr/testify/assert"
)

View file

@ -2,8 +2,9 @@ package color
import (
"fmt"
"oh-my-posh/regex"
"strings"
"github.com/jandedobbeleer/oh-my-posh/regex"
)
const (

View file

@ -1,9 +1,10 @@
package color
import (
"oh-my-posh/shell"
"testing"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/stretchr/testify/assert"
)

View file

@ -1,9 +1,9 @@
package console
import (
"oh-my-posh/color"
"oh-my-posh/platform"
"oh-my-posh/template"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/template"
)
type Title struct {

View file

@ -1,11 +1,12 @@
package console
import (
"oh-my-posh/color"
"oh-my-posh/mock"
"oh-my-posh/platform"
"testing"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/stretchr/testify/assert"
)

View file

@ -1,11 +1,12 @@
package engine
import (
"oh-my-posh/color"
"oh-my-posh/platform"
"oh-my-posh/shell"
"sync"
"time"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
)
// BlockType type of block

View file

@ -10,11 +10,11 @@ import (
"strings"
"time"
"oh-my-posh/color"
"oh-my-posh/platform"
"oh-my-posh/properties"
"oh-my-posh/segments"
"oh-my-posh/template"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/segments"
"github.com/jandedobbeleer/oh-my-posh/template"
"github.com/gookit/config/v2"
"github.com/gookit/config/v2/json"

View file

@ -1,12 +1,13 @@
package engine
import (
"oh-my-posh/color"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/segments"
"testing"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/segments"
"github.com/gookit/config/v2"
"github.com/mitchellh/mapstructure"
"github.com/stretchr/testify/assert"

View file

@ -5,11 +5,11 @@ import (
"strings"
"time"
"oh-my-posh/color"
"oh-my-posh/console"
"oh-my-posh/platform"
"oh-my-posh/shell"
"oh-my-posh/template"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/console"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/jandedobbeleer/oh-my-posh/template"
)
type Engine struct {
@ -305,7 +305,7 @@ func (e *Engine) print() string {
break
}
// in bash, the entire rprompt needs to be escaped for the prompt to be interpreted correctly
// see https://github.com/JanDeDobbeleer/oh-my-posh/pull/2398
// see https://github.com/jandedobbeleer/oh-my-posh/pull/2398
ansi := &color.Ansi{}
ansi.InitPlain()
prompt := ansi.SaveCursorPosition()

View file

@ -2,13 +2,14 @@ package engine
import (
"errors"
"oh-my-posh/color"
"oh-my-posh/console"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/shell"
"testing"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/console"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/stretchr/testify/assert"
)

View file

@ -26,12 +26,13 @@ import (
_ "embed"
"fmt"
"math"
"oh-my-posh/color"
"oh-my-posh/regex"
"strconv"
"strings"
"unicode/utf8"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/regex"
"github.com/esimov/stackblur-go"
"github.com/fogleman/gg"
"github.com/golang/freetype/truetype"

View file

@ -2,11 +2,12 @@ package engine
import (
"io/ioutil" //nolint:staticcheck,nolintlint
"oh-my-posh/color"
"os"
"path/filepath"
"testing"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/stretchr/testify/assert"
)

View file

@ -2,10 +2,11 @@ package engine
import (
"fmt"
"oh-my-posh/platform"
"oh-my-posh/properties"
"oh-my-posh/segments"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/segments"
)
const (

View file

@ -1,11 +1,12 @@
package engine
import (
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,10 +1,10 @@
package engine
import (
"oh-my-posh/color"
"oh-my-posh/console"
"oh-my-posh/platform"
"oh-my-posh/shell"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/console"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/shell"
)
// New returns a prompt engine initialized with the

View file

@ -1,6 +1,6 @@
package engine
import "oh-my-posh/platform"
import "github.com/jandedobbeleer/oh-my-posh/platform"
func shouldHideForWidth(env platform.Environment, minWidth, maxWidth int) bool {
if maxWidth == 0 && minWidth == 0 {

View file

@ -1,9 +1,10 @@
package engine
import (
"oh-my-posh/mock"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/stretchr/testify/assert"
)

View file

@ -7,11 +7,11 @@ import (
"strings"
"time"
"oh-my-posh/platform"
"oh-my-posh/properties"
"oh-my-posh/segments"
"oh-my-posh/shell"
"oh-my-posh/template"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/segments"
"github.com/jandedobbeleer/oh-my-posh/shell"
"github.com/jandedobbeleer/oh-my-posh/template"
c "golang.org/x/text/cases"
"golang.org/x/text/language"

View file

@ -2,12 +2,13 @@ package engine
import (
"encoding/json"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"oh-my-posh/segments"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/segments"
"github.com/stretchr/testify/assert"
)

View file

@ -1,4 +1,4 @@
module oh-my-posh
module github.com/jandedobbeleer/oh-my-posh
go 1.19

View file

@ -5,8 +5,9 @@ import (
"fmt"
"io"
"net/http"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
const (

View file

@ -2,10 +2,11 @@ package http
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
mock2 "github.com/stretchr/testify/mock"
)

View file

@ -4,8 +4,9 @@ import (
"encoding/json"
"errors"
"io"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Request struct {

View file

@ -2,10 +2,11 @@ package http
import (
"net"
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
mock2 "github.com/stretchr/testify/mock"
)

View file

@ -1,6 +1,6 @@
package main
import "oh-my-posh/cli"
import "github.com/jandedobbeleer/oh-my-posh/cli"
var (
Version = "development"

View file

@ -2,8 +2,9 @@ package main
import (
"bytes"
"oh-my-posh/cli"
"testing"
"github.com/jandedobbeleer/oh-my-posh/cli"
)
func BenchmarkInit(b *testing.B) {

View file

@ -3,10 +3,11 @@ package mock
import (
"io"
"io/fs"
"oh-my-posh/platform"
"oh-my-posh/platform/battery"
"time"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
mock "github.com/stretchr/testify/mock"
)

View file

@ -2,10 +2,11 @@ package battery
import (
"errors"
"oh-my-posh/platform/cmd"
"oh-my-posh/regex"
"strconv"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform/cmd"
"github.com/jandedobbeleer/oh-my-posh/regex"
)
func mapMostLogicalState(state string) State {

View file

@ -10,10 +10,6 @@ import (
"io/fs"
"net/http"
"net/http/httputil"
"oh-my-posh/log"
"oh-my-posh/platform/battery"
"oh-my-posh/platform/cmd"
"oh-my-posh/regex"
"os"
"os/exec"
"path/filepath"
@ -23,6 +19,11 @@ import (
"sync"
"time"
"github.com/jandedobbeleer/oh-my-posh/log"
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
"github.com/jandedobbeleer/oh-my-posh/platform/cmd"
"github.com/jandedobbeleer/oh-my-posh/regex"
process "github.com/shirou/gopsutil/v3/process"
)
@ -574,7 +575,7 @@ func (env *Shell) Shell() string {
}
env.Debug("Shell", "process name: "+name)
// this is used for when scoop creates a shim, see
// https://github.com/JanDeDobbeleer/oh-my-posh/issues/2806
// https://github.com/jandedobbeleer/oh-my-posh/issues/2806
executable, _ := os.Executable()
if name == "cmd.exe" || name == executable {
p, _ = p.Parent()

View file

@ -2,12 +2,13 @@ package platform
import (
"errors"
"oh-my-posh/regex"
"strconv"
"strings"
"time"
"oh-my-posh/platform/battery"
"github.com/jandedobbeleer/oh-my-posh/regex"
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
)
func mapMostLogicalState(state string) battery.State {

View file

@ -3,8 +3,9 @@
package platform
import (
"oh-my-posh/platform/battery"
"time"
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
)
func (env *Shell) BatteryState() (*battery.Info, error) {

View file

@ -3,13 +3,14 @@ package platform
import (
"errors"
"fmt"
"oh-my-posh/regex"
"reflect"
"strings"
"syscall"
"unicode/utf16"
"unsafe"
"github.com/jandedobbeleer/oh-my-posh/regex"
"golang.org/x/sys/windows"
)

View file

@ -2,8 +2,9 @@ package properties
import (
"fmt"
"oh-my-posh/color"
"oh-my-posh/regex"
"github.com/jandedobbeleer/oh-my-posh/color"
"github.com/jandedobbeleer/oh-my-posh/regex"
)
type Properties interface {

View file

@ -1,9 +1,10 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"path/filepath"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Angular struct {

View file

@ -2,9 +2,10 @@ package segments
import (
"fmt"
"oh-my-posh/platform"
"oh-my-posh/properties"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Aws struct {

View file

@ -1,10 +1,11 @@
package segments
import (
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -3,10 +3,11 @@ package segments
import (
"encoding/json"
"errors"
"oh-my-posh/platform"
"oh-my-posh/properties"
"path/filepath"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Az struct {

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type AzFunc struct {

View file

@ -1,13 +1,14 @@
package segments
import (
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"os"
"path/filepath"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,9 +1,9 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/platform/battery"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Battery struct {

View file

@ -7,10 +7,11 @@ import (
"fmt"
"math"
"net/http"
"oh-my-posh/platform"
"oh-my-posh/properties"
"sort"
"time"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
// segment struct, makes templating easier

View file

@ -2,11 +2,12 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"time"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -2,8 +2,9 @@ package segments
import (
"encoding/json"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Cds struct {

View file

@ -2,12 +2,13 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"path/filepath"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Cf struct {

View file

@ -1,9 +1,10 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"regexp"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type CfTarget struct {

View file

@ -2,11 +2,12 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/properties"
"os/exec"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -2,12 +2,13 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"path/filepath"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Cmake struct {

View file

@ -1,9 +1,10 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Cmd struct {

View file

@ -1,10 +1,11 @@
package segments
import (
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,9 +1,10 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Connection struct {

View file

@ -2,11 +2,12 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Crystal struct {

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
var (

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Deno struct {

View file

@ -1,9 +1,9 @@
package segments
import (
"oh-my-posh/constants"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/constants"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Dotnet struct {

View file

@ -1,12 +1,13 @@
package segments
import (
"oh-my-posh/constants"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/constants"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -2,10 +2,11 @@ package segments
import (
"fmt"
"oh-my-posh/platform"
"oh-my-posh/properties"
"strconv"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
lang "golang.org/x/text/language"
"golang.org/x/text/message"
)

View file

@ -1,11 +1,12 @@
package segments
import (
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"time"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,9 +1,10 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"strconv"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Exit struct {

View file

@ -1,11 +1,12 @@
package segments
import (
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Flutter struct {

View file

@ -2,11 +2,12 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/properties"
"strings"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -2,10 +2,11 @@ package segments
import (
"errors"
"oh-my-posh/platform"
"oh-my-posh/properties"
"path"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"gopkg.in/ini.v1"
)

View file

@ -4,8 +4,8 @@ import (
"path"
"testing"
"oh-my-posh/mock"
"oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/stretchr/testify/assert"
mock2 "github.com/stretchr/testify/mock"

View file

@ -3,13 +3,14 @@ package segments
import (
"fmt"
url2 "net/url"
"oh-my-posh/platform"
"oh-my-posh/properties"
"oh-my-posh/regex"
"path/filepath"
"strconv"
"strings"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/regex"
"gopkg.in/ini.v1"
)

View file

@ -3,14 +3,15 @@ package segments
import (
"errors"
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"os"
"path/filepath"
"strings"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -3,8 +3,9 @@ package segments
import (
"encoding/json"
"errors"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type gitVersion struct {

View file

@ -2,10 +2,11 @@ package segments
import (
"errors"
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/alecthomas/assert"
mock2 "github.com/stretchr/testify/mock"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"golang.org/x/mod/modfile"
)

View file

@ -3,12 +3,13 @@ package segments
import (
"errors"
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"os"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Haskell struct {

View file

@ -3,11 +3,12 @@ package segments
import (
"errors"
"fmt"
"oh-my-posh/mock"
"oh-my-posh/platform"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -2,9 +2,10 @@ package segments
import (
"net"
"oh-my-posh/http"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/http"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type ipData struct {

View file

@ -3,9 +3,10 @@ package segments
import (
"errors"
"net"
"oh-my-posh/mock"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/stretchr/testify/assert"
mock2 "github.com/stretchr/testify/mock"
)

View file

@ -2,8 +2,9 @@ package segments
import (
"errors"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type ITerm struct {

View file

@ -1,9 +1,10 @@
package segments
import (
"oh-my-posh/mock"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/stretchr/testify/assert"
)

View file

@ -2,8 +2,9 @@ package segments
import (
"fmt"
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Java struct {

View file

@ -2,10 +2,11 @@ package segments
import (
"fmt"
"oh-my-posh/mock"
"oh-my-posh/properties"
"testing"
"github.com/jandedobbeleer/oh-my-posh/mock"
"github.com/jandedobbeleer/oh-my-posh/properties"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Julia struct {

View file

@ -1,8 +1,8 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
)
type Kotlin struct {

View file

@ -1,10 +1,11 @@
package segments
import (
"oh-my-posh/platform"
"oh-my-posh/properties"
"path/filepath"
"github.com/jandedobbeleer/oh-my-posh/platform"
"github.com/jandedobbeleer/oh-my-posh/properties"
"gopkg.in/yaml.v3"
)

Some files were not shown because too many files have changed in this diff Show more