Path changes for major revision

This commit is contained in:
Sean E. Russell 2020-02-28 14:48:35 -06:00
parent c6af0ab404
commit afb62afcdf
21 changed files with 36 additions and 36 deletions

View File

@ -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.

View File

@ -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

View File

@ -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 (

View File

@ -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]

View File

@ -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) {

View File

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/xxxserxxx/gotop/utils"
"github.com/xxxserxxx/gotop/v3/utils"
)
func init() {

View File

@ -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"
)

View File

@ -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) {

View File

@ -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) {

View File

@ -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 (

View File

@ -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.

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 (

View File

@ -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 (

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/xxxserxxx/gotop/utils"
"github.com/xxxserxxx/gotop/v3/utils"
)
type processList struct {

View File

@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/xxxserxxx/gotop/utils"
"github.com/xxxserxxx/gotop/v3/utils"
)
const (

View File

@ -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