mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
chore(go): rename module
This commit is contained in:
parent
04bfb2eef1
commit
023546fe37
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package cli
|
||||
|
||||
import (
|
||||
"oh-my-posh/platform"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package color
|
||||
|
||||
import (
|
||||
"oh-my-posh/shell"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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{}
|
||||
|
|
|
@ -2,7 +2,8 @@ package color
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"oh-my-posh/platform"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/platform"
|
||||
|
||||
"github.com/gookit/color"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
package color
|
||||
|
||||
import (
|
||||
"oh-my-posh/regex"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
)
|
||||
|
||||
// PlainWriter writes a plain string
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package color
|
||||
|
||||
import (
|
||||
"oh-my-posh/regex"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
|
||||
"github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,8 +2,9 @@ package color
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"oh-my-posh/regex"
|
||||
"strings"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/regex"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package color
|
||||
|
||||
import (
|
||||
"oh-my-posh/shell"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/shell"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package engine
|
||||
|
||||
import (
|
||||
"oh-my-posh/mock"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module oh-my-posh
|
||||
module github.com/jandedobbeleer/oh-my-posh
|
||||
|
||||
go 1.19
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
import "oh-my-posh/cli"
|
||||
import "github.com/jandedobbeleer/oh-my-posh/cli"
|
||||
|
||||
var (
|
||||
Version = "development"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package segments
|
||||
|
||||
import (
|
||||
"oh-my-posh/mock"
|
||||
"testing"
|
||||
|
||||
"github.com/jandedobbeleer/oh-my-posh/mock"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue