mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
refactor(go): adapt imports for go.mod consistency
This commit is contained in:
parent
10668b72e9
commit
02c557f42e
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
"github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
"github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package ansi
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package ansi
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/gookit/color"
|
||||
)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package ansi
|
||||
|
||||
import "github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
import "github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
func GetAccentColor(env platform.Environment) (*RGB, error) {
|
||||
return nil, &platform.NotImplemented{}
|
||||
|
|
|
@ -3,7 +3,7 @@ package ansi
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/gookit/color"
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -3,10 +3,10 @@ package cli
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package cli
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package cli
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/font"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/font"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
color2 "github.com/gookit/color"
|
||||
"github.com/spf13/cobra"
|
||||
|
|
|
@ -3,9 +3,9 @@ package cli
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package cli
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/engine"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package cli
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
)
|
||||
|
||||
// BlockType type of block
|
||||
|
|
|
@ -10,11 +10,11 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"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/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/segments"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/template"
|
||||
|
||||
"github.com/gookit/config/v2"
|
||||
"github.com/gookit/config/v2/json"
|
||||
|
|
|
@ -3,10 +3,10 @@ package engine
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/segments"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/segments"
|
||||
|
||||
"github.com/gookit/config/v2"
|
||||
"github.com/mitchellh/mapstructure"
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/template"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/template"
|
||||
)
|
||||
|
||||
type Engine struct {
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"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/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -30,8 +30,8 @@ import (
|
|||
"strings"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
|
||||
"github.com/esimov/stackblur-go"
|
||||
"github.com/fogleman/gg"
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"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/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/segments"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,9 +3,9 @@ package engine
|
|||
import (
|
||||
"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/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package engine
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
)
|
||||
|
||||
// New returns a prompt engine initialized with the
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package engine
|
||||
|
||||
import "github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
import "github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
func shouldHideForWidth(env platform.Environment, minWidth, maxWidth int) bool {
|
||||
if maxWidth == 0 && minWidth == 0 {
|
||||
|
|
|
@ -3,7 +3,7 @@ package engine
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -7,11 +7,11 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"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"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/segments"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/shell"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/template"
|
||||
|
||||
c "golang.org/x/text/cases"
|
||||
"golang.org/x/text/language"
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"encoding/json"
|
||||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/segments"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/jandedobbeleer/oh-my-posh
|
||||
module github.com/jandedobbeleer/oh-my-posh/src
|
||||
|
||||
go 1.19
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
mock2 "github.com/stretchr/testify/mock"
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"errors"
|
||||
"io"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Request struct {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"net"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
mock2 "github.com/stretchr/testify/mock"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
import "github.com/jandedobbeleer/oh-my-posh/cli"
|
||||
import "github.com/jandedobbeleer/oh-my-posh/src/cli"
|
||||
|
||||
var (
|
||||
Version = "development"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/cli"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/cli"
|
||||
)
|
||||
|
||||
func BenchmarkInit(b *testing.B) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"io/fs"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/battery"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform/cmd"
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/cmd"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
)
|
||||
|
||||
func mapMostLogicalState(state string) State {
|
||||
|
|
|
@ -19,10 +19,10 @@ 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"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/log"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/battery"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/cmd"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
|
||||
process "github.com/shirou/gopsutil/v3/process"
|
||||
)
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/battery"
|
||||
)
|
||||
|
||||
func mapMostLogicalState(state string) battery.State {
|
||||
|
|
|
@ -5,7 +5,7 @@ package platform
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/battery"
|
||||
)
|
||||
|
||||
func (env *Shell) BatteryState() (*battery.Info, error) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"unicode/utf16"
|
||||
"unsafe"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package properties
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/ansi"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
)
|
||||
|
||||
type Properties interface {
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Angular struct {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Aws struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Az struct {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type AzFunc struct {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform/battery"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform/battery"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Battery struct {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
// segment struct, makes templating easier
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Cds struct {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Cf struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type CfTarget struct {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"os/exec"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Cmake struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Cmd struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Connection struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"fmt"
|
||||
"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/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Crystal struct {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Deno struct {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/constants"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/constants"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Dotnet struct {
|
||||
|
|
|
@ -3,10 +3,10 @@ package segments
|
|||
import (
|
||||
"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/jandedobbeleer/oh-my-posh/src/constants"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
lang "golang.org/x/text/language"
|
||||
"golang.org/x/text/message"
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Exit struct {
|
||||
|
|
|
@ -3,9 +3,9 @@ package segments
|
|||
import (
|
||||
"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/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Flutter struct {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"errors"
|
||||
"path"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"gopkg.in/ini.v1"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"path"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
mock2 "github.com/stretchr/testify/mock"
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
|
||||
"gopkg.in/ini.v1"
|
||||
)
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type gitVersion struct {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/alecthomas/assert"
|
||||
mock2 "github.com/stretchr/testify/mock"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"golang.org/x/mod/modfile"
|
||||
)
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Haskell struct {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"fmt"
|
||||
"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/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package segments
|
|||
import (
|
||||
"net"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/http"
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/http"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type ipData struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
mock2 "github.com/stretchr/testify/mock"
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type ITerm struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package segments
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Java struct {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Julia struct {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Kotlin struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package segments
|
|||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/template"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/regex"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/template"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,9 +3,9 @@ package segments
|
|||
import (
|
||||
"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/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/properties"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
)
|
||||
|
||||
type Lua struct {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"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/jandedobbeleer/oh-my-posh/src/mock"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/platform"
|
||||
"github.com/jandedobbeleer/oh-my-posh/src/properties"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue