Path changes for major revision
This commit is contained in:
parent
c6af0ab404
commit
afb62afcdf
|
@ -21,7 +21,7 @@ Working and tested on Linux, FreeBSD and macOS. Windows support is planned. Open
|
|||
### Source
|
||||
|
||||
```bash
|
||||
go get github.com/xxxserxxx/gotop/...
|
||||
go get github.com/xxxserxxx/gotop/v3/cmd/gotop
|
||||
```
|
||||
|
||||
### Prebuilt binaries
|
||||
|
@ -36,7 +36,7 @@ Unzip it and then move `gotop` into your `$PATH` somewhere. If you're on a Debi
|
|||
|
||||
The easiest way is to
|
||||
```
|
||||
go get github.com/xxxserxxx/gotop/cmd/gotop
|
||||
go get github.com/xxxserxxx/gotop/v3/cmd/gotop
|
||||
```
|
||||
|
||||
To create the cross-compile builds, there's a `make.sh` script; it has a lot of dependencies and has only been tested on my computer. When it works, it creates archives for numerous OSes & architectures. There's no testing for whether dependencies are available; it assumes they are and will fail in strange ways when they aren't.
|
||||
|
|
|
@ -15,7 +15,7 @@ parts:
|
|||
gotop:
|
||||
source: .
|
||||
plugin: go
|
||||
go-importpath: github.com/xxxserxxx/gotop
|
||||
go-importpath: github.com/xxxserxxx/gotop/v3
|
||||
build-packages:
|
||||
- git-core
|
||||
- gcc
|
||||
|
|
|
@ -18,12 +18,12 @@ import (
|
|||
ui "github.com/gizak/termui/v3"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
|
||||
"github.com/xxxserxxx/gotop"
|
||||
"github.com/xxxserxxx/gotop/colorschemes"
|
||||
"github.com/xxxserxxx/gotop/layout"
|
||||
"github.com/xxxserxxx/gotop/logging"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
w "github.com/xxxserxxx/gotop/widgets"
|
||||
"github.com/xxxserxxx/gotop/v3"
|
||||
"github.com/xxxserxxx/gotop/v3/colorschemes"
|
||||
"github.com/xxxserxxx/gotop/v3/layout"
|
||||
"github.com/xxxserxxx/gotop/v3/logging"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
w "github.com/xxxserxxx/gotop/v3/widgets"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/xxxserxxx/gotop/colorschemes"
|
||||
"github.com/xxxserxxx/gotop/widgets"
|
||||
"github.com/xxxserxxx/gotop/v3/colorschemes"
|
||||
"github.com/xxxserxxx/gotop/v3/widgets"
|
||||
)
|
||||
|
||||
// TODO: test, build, release [#119] [#120] [#121]
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/xxxserxxx/gotop/widgets"
|
||||
"github.com/xxxserxxx/gotop/v3/widgets"
|
||||
)
|
||||
|
||||
func TestParse(t *testing.T) {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"log"
|
||||
"sort"
|
||||
|
||||
"github.com/xxxserxxx/gotop"
|
||||
"github.com/xxxserxxx/gotop/widgets"
|
||||
"github.com/xxxserxxx/gotop/v3"
|
||||
"github.com/xxxserxxx/gotop/v3/widgets"
|
||||
|
||||
ui "github.com/gizak/termui/v3"
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/xxxserxxx/gotop"
|
||||
"github.com/xxxserxxx/gotop/v3"
|
||||
)
|
||||
|
||||
func New(c gotop.Config) (io.WriteCloser, error) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/xxxserxxx/gotop"
|
||||
"github.com/xxxserxxx/gotop/v3"
|
||||
)
|
||||
|
||||
func TestLogging(t *testing.T) {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
. "github.com/gizak/termui/v3"
|
||||
rw "github.com/mattn/go-runewidth"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"image"
|
||||
"sort"
|
||||
|
||||
drawille "github.com/xxxserxxx/gotop/termui/drawille-go"
|
||||
. "github.com/gizak/termui/v3"
|
||||
drawille "github.com/xxxserxxx/gotop/v3/termui/drawille-go"
|
||||
)
|
||||
|
||||
// LineGraph implements a line graph of data points.
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/distatus/battery"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
ui "github.com/xxxserxxx/gotop/termui"
|
||||
ui "github.com/xxxserxxx/gotop/v3/termui"
|
||||
)
|
||||
|
||||
type BatteryWidget struct {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/distatus/battery"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
. "github.com/xxxserxxx/gotop/termui"
|
||||
. "github.com/xxxserxxx/gotop/v3/termui"
|
||||
)
|
||||
|
||||
type BatteryGauge struct {
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/xxxserxxx/gotop/devices"
|
||||
"github.com/xxxserxxx/gotop/v3/devices"
|
||||
|
||||
ui "github.com/xxxserxxx/gotop/termui"
|
||||
ui "github.com/xxxserxxx/gotop/v3/termui"
|
||||
)
|
||||
|
||||
type CpuWidget struct {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"github.com/prometheus/client_golang/prometheus"
|
||||
psDisk "github.com/shirou/gopsutil/disk"
|
||||
|
||||
ui "github.com/xxxserxxx/gotop/termui"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
ui "github.com/xxxserxxx/gotop/v3/termui"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
type Partition struct {
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/xxxserxxx/gotop/devices"
|
||||
ui "github.com/xxxserxxx/gotop/termui"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
"github.com/xxxserxxx/gotop/v3/devices"
|
||||
ui "github.com/xxxserxxx/gotop/v3/termui"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
type MemWidget struct {
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"github.com/prometheus/client_golang/prometheus"
|
||||
psNet "github.com/shirou/gopsutil/net"
|
||||
|
||||
ui "github.com/xxxserxxx/gotop/termui"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
ui "github.com/xxxserxxx/gotop/v3/termui"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
psCPU "github.com/shirou/gopsutil/cpu"
|
||||
|
||||
tui "github.com/gizak/termui/v3"
|
||||
ui "github.com/xxxserxxx/gotop/termui"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
ui "github.com/xxxserxxx/gotop/v3/termui"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
type processList struct {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
ui "github.com/gizak/termui/v3"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/xxxserxxx/gotop/devices"
|
||||
"github.com/xxxserxxx/gotop/utils"
|
||||
"github.com/xxxserxxx/gotop/v3/devices"
|
||||
"github.com/xxxserxxx/gotop/v3/utils"
|
||||
)
|
||||
|
||||
type TempScale rune
|
||||
|
|
Loading…
Reference in New Issue
Block a user