Skip to content

Commit

Permalink
change pkg name
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe committed Oct 9, 2022
1 parent b21bf0d commit f204083
Show file tree
Hide file tree
Showing 96 changed files with 269 additions and 413 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"nrf-connect.toolchain.path": "${nrf-connect.toolchain:2.1.0}"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ published at http://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html
Build the newtmgr tool as follows:

1. Unpack newtmgr source.
2. Rename resulting `apache-mynewt-newtmgr-1.9.0` directory to `$GOPATH/src/mynewt.apache.org/newtmgr`
3. `cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr`
2. Rename resulting `apache-mynewt-newtmgr-1.9.0` directory to `$GOPATH/src/github.com/joefour/mynewt-newtmgr`
3. `cd $GOPATH/src/github.com/joefour/mynewt-newtmgr/newtmgr`
4. `GO111MODULE=on go build`
4 changes: 2 additions & 2 deletions docs/install/install_linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ install the latest release version of newtmgr from source.

.. code-block:: console
$ go get mynewt.apache.org/newtmgr/newtmgr
$ go get github.com/joefour/mynewt-newtmgr/newtmgr
$ ls -l /tmp/go/bin/newtmgr
-rwxr-xr-x 1 user staff 17884488 Jul 29 16:25 /tmp/go/bin/newtmgr
4. Check out the source from the latest release version:

.. code-block:: console
$ cd src/mynewt.apache.org/newtmgr
$ cd src/github.com/joefour/mynewt-newtmgr
$ git checkout mynewt_1_4_1_tag
Note: checking out 'mynewt_1_4_1_tag'.
Expand Down
4 changes: 2 additions & 2 deletions docs/install/install_windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ build and install the latest release version of newtmgr from source.
.. code-block:: console
$ go get mynewt.apache.org/newtmgr/newtmgr
$ go get github.com/joefour/mynewt-newtmgr/newtmgr
**Note** If you get the following error, you may ignore it as we will
rebuild newtmgr from the latest release version of newtmgr in the next
Expand All @@ -101,7 +101,7 @@ build and install the latest release version of newtmgr from source.

.. code-block:: console
$ cd src/mynewt.apache.org/newtmgr
$ cd src/github.com/joefour/mynewt-newtmgr
$ git checkout mynewt_1_4_1_tag
Note: checking out 'mynewt_1_4_1_tag'.
Expand Down
14 changes: 1 addition & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module mynewt.apache.org/newtmgr
module github.com/joefour/mynewt-newtmgr

go 1.12

Expand All @@ -7,20 +7,16 @@ require (
github.com/JuulLabs-OSS/cbgo v0.0.1
github.com/abiosoft/ishell v2.0.0+incompatible // indirect
github.com/abiosoft/readline v0.0.0-20180607040430-155bce2042db // indirect
github.com/cheggaaa/pb v2.0.7+incompatible // indirect
github.com/chzyer/logex v1.1.10 // indirect
github.com/chzyer/readline v0.0.0-20171208011716-f6d7a1f6fbf3 // indirect
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect
github.com/colinrgodsey/serial v0.0.0-20200722230255-f7ada0eda9cb
github.com/cosiner/argv v0.0.1 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/fatih/structs v1.1.0
github.com/flynn-archive/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
github.com/joaojeronimo/go-crc16 v0.0.0-20140729130949-59bd0194935e
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/mattn/go-runewidth v0.0.6 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/peterh/liner v1.1.0 // indirect
github.com/pkg/errors v0.8.1
github.com/raff/goble v0.0.0-20200327175727-d63360dcfd80 // indirect
github.com/runtimeco/go-coap v0.0.0-20190911184520-8e5532820fc0
Expand All @@ -29,17 +25,9 @@ require (
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.5 // indirect
github.com/ugorji/go/codec v1.1.7
go.starlark.net v0.0.0-20190919145610-979af19b165c // indirect
golang.org/x/arch v0.0.0-20190927153633-4e8777c89be4 // indirect
golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914
gopkg.in/VividCortex/ewma.v1 v1.1.1 // indirect
gopkg.in/abiosoft/ishell.v2 v2.0.0
gopkg.in/cheggaaa/pb.v1 v1.0.28
gopkg.in/cheggaaa/pb.v2 v2.0.7 // indirect
gopkg.in/fatih/color.v1 v1.7.0 // indirect
gopkg.in/mattn/go-colorable.v0 v0.1.0 // indirect
gopkg.in/mattn/go-isatty.v0 v0.0.4 // indirect
gopkg.in/mattn/go-runewidth.v0 v0.0.4 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
mynewt.apache.org/newt v0.0.0-20200409145402-c5d1e422bfa3
)
147 changes: 0 additions & 147 deletions go.sum

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions newtmgr/bll/bll_common.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/**
Expand Down Expand Up @@ -25,10 +26,10 @@ import (
"runtime"
"time"

log "github.com/sirupsen/logrus"
"github.com/JuulLabs-OSS/ble"
log "github.com/sirupsen/logrus"

"mynewt.apache.org/newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
)

func exchangeMtu(cln ble.Client, preferredMtu uint16) (uint16, error) {
Expand Down
17 changes: 9 additions & 8 deletions newtmgr/bll/bll_sesn.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/**
Expand Down Expand Up @@ -31,15 +32,15 @@ import (
log "github.com/sirupsen/logrus"
"golang.org/x/net/context"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/mgmt"
"github.com/joefour/mynewt-newtmgr/nmxact/nmble"
"github.com/joefour/mynewt-newtmgr/nmxact/nmcoap"
"github.com/joefour/mynewt-newtmgr/nmxact/nmp"
"github.com/joefour/mynewt-newtmgr/nmxact/nmxutil"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/bledefs"
"mynewt.apache.org/newtmgr/nmxact/mgmt"
"mynewt.apache.org/newtmgr/nmxact/nmble"
"mynewt.apache.org/newtmgr/nmxact/nmcoap"
"mynewt.apache.org/newtmgr/nmxact/nmp"
"mynewt.apache.org/newtmgr/nmxact/nmxutil"
"mynewt.apache.org/newtmgr/nmxact/sesn"
)

// A session that uses the host machine's native BLE support.
Expand Down
5 changes: 3 additions & 2 deletions newtmgr/bll/bll_sesn_cfg.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/**
Expand Down Expand Up @@ -26,8 +27,8 @@ import (

"github.com/JuulLabs-OSS/ble"

"mynewt.apache.org/newtmgr/nmxact/nmcoap"
"mynewt.apache.org/newtmgr/nmxact/sesn"
"github.com/joefour/mynewt-newtmgr/nmxact/nmcoap"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
)

type BllSesnCfg struct {
Expand Down
5 changes: 3 additions & 2 deletions newtmgr/bll/bll_sesn_cfg_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

/**
Expand All @@ -24,8 +25,8 @@ package bll
import (
"time"

"mynewt.apache.org/newtmgr/nmxact/nmcoap"
"mynewt.apache.org/newtmgr/nmxact/sesn"
"github.com/joefour/mynewt-newtmgr/nmxact/nmcoap"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
)

type BllSesnCfg struct {
Expand Down
3 changes: 2 additions & 1 deletion newtmgr/bll/bll_util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/**
Expand Down Expand Up @@ -27,7 +28,7 @@ import (

"github.com/JuulLabs-OSS/ble"

"mynewt.apache.org/newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
)

func UuidFromBllUuid(bllUuid ble.UUID) (bledefs.BleUuid, error) {
Expand Down
5 changes: 3 additions & 2 deletions newtmgr/bll/bll_xport.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/**
Expand Down Expand Up @@ -26,8 +27,8 @@ import (

"github.com/JuulLabs-OSS/ble"
"github.com/JuulLabs-OSS/ble/examples/lib/dev"
"mynewt.apache.org/newtmgr/nmxact/bledefs"
"mynewt.apache.org/newtmgr/nmxact/sesn"
"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
)

type XportCfg struct {
Expand Down
3 changes: 2 additions & 1 deletion newtmgr/bll/bll_xport_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/**
Expand Down Expand Up @@ -26,8 +27,8 @@ import (
"github.com/JuulLabs-OSS/ble/linux"
"github.com/JuulLabs-OSS/ble/linux/hci/cmd"

"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/nmxact/bledefs"
)

func BllXportSetConnParams(dev ble.Device, ownAddrType bledefs.BleAddrType) error {
Expand Down
3 changes: 2 additions & 1 deletion newtmgr/bll/bll_xport_nonlinux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

/**
Expand All @@ -24,7 +25,7 @@ package bll
import (
"github.com/JuulLabs-OSS/ble"

"mynewt.apache.org/newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
)

// macOS (CoreBluetooth) does not allow the connection parameters to be
Expand Down
9 changes: 5 additions & 4 deletions newtmgr/bll/bll_xports_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

/**
Expand All @@ -24,8 +25,8 @@ package bll
import (
"fmt"

"mynewt.apache.org/newtmgr/nmxact/sesn"
"mynewt.apache.org/newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/bledefs"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
)

type XportCfg struct {
Expand All @@ -40,13 +41,13 @@ func NewXportCfg() XportCfg {
}

type BllXport struct {
cfg XportCfg
cfg XportCfg
hciIdx int
}

func NewBllXport(cfg XportCfg, hciIdx int) *BllXport {
return &BllXport{
cfg: cfg,
cfg: cfg,
hciIdx: hciIdx,
}
}
Expand Down
4 changes: 2 additions & 2 deletions newtmgr/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/nmxutil"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/nmxutil"
)

var NewtmgrLogLevel log.Level
Expand Down
20 changes: 10 additions & 10 deletions newtmgr/cli/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ import (

log "github.com/sirupsen/logrus"

"github.com/joefour/mynewt-newtmgr/newtmgr/bll"
"github.com/joefour/mynewt-newtmgr/newtmgr/config"
"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/mtech_lora"
"github.com/joefour/mynewt-newtmgr/nmxact/nmble"
"github.com/joefour/mynewt-newtmgr/nmxact/nmcoap"
"github.com/joefour/mynewt-newtmgr/nmxact/nmserial"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
"github.com/joefour/mynewt-newtmgr/nmxact/udp"
"github.com/joefour/mynewt-newtmgr/nmxact/xport"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/bll"
"mynewt.apache.org/newtmgr/newtmgr/config"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/mtech_lora"
"mynewt.apache.org/newtmgr/nmxact/nmble"
"mynewt.apache.org/newtmgr/nmxact/nmcoap"
"mynewt.apache.org/newtmgr/nmxact/nmserial"
"mynewt.apache.org/newtmgr/nmxact/sesn"
"mynewt.apache.org/newtmgr/nmxact/udp"
"mynewt.apache.org/newtmgr/nmxact/xport"
)

var globalSesn sesn.Sesn
Expand Down
6 changes: 3 additions & 3 deletions newtmgr/cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (

"github.com/spf13/cobra"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
"github.com/joefour/mynewt-newtmgr/nmxact/xact"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/sesn"
"mynewt.apache.org/newtmgr/nmxact/xact"
)

func configRead(s sesn.Sesn, args []string) {
Expand Down
4 changes: 2 additions & 2 deletions newtmgr/cli/connprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"fmt"
"strings"

"github.com/joefour/mynewt-newtmgr/newtmgr/config"
"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/config"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions newtmgr/cli/crash.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (

"github.com/spf13/cobra"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/xact"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/xact"
)

func crashRunCmd(cmd *cobra.Command, args []string) {
Expand Down
6 changes: 3 additions & 3 deletions newtmgr/cli/datetime.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (

"github.com/spf13/cobra"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/sesn"
"github.com/joefour/mynewt-newtmgr/nmxact/xact"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/sesn"
"mynewt.apache.org/newtmgr/nmxact/xact"
)

func dateTimeRead(s sesn.Sesn) error {
Expand Down
4 changes: 2 additions & 2 deletions newtmgr/cli/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (

"github.com/spf13/cobra"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/xact"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/xact"
)

func echoRunCmd(cmd *cobra.Command, args []string) {
Expand Down
6 changes: 3 additions & 3 deletions newtmgr/cli/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (

"github.com/spf13/cobra"

"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/nmp"
"github.com/joefour/mynewt-newtmgr/nmxact/xact"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/nmp"
"mynewt.apache.org/newtmgr/nmxact/xact"
)

func fsDownloadRunCmd(cmd *cobra.Command, args []string) {
Expand Down
8 changes: 4 additions & 4 deletions newtmgr/cli/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ import (
"github.com/spf13/cobra"
pb "gopkg.in/cheggaaa/pb.v1"

"github.com/joefour/mynewt-newtmgr/newtmgr/core"
"github.com/joefour/mynewt-newtmgr/newtmgr/nmutil"
"github.com/joefour/mynewt-newtmgr/nmxact/nmp"
"github.com/joefour/mynewt-newtmgr/nmxact/xact"
"mynewt.apache.org/newt/util"
"mynewt.apache.org/newtmgr/newtmgr/core"
"mynewt.apache.org/newtmgr/newtmgr/nmutil"
"mynewt.apache.org/newtmgr/nmxact/nmp"
"mynewt.apache.org/newtmgr/nmxact/xact"
)

var (
Expand Down
Loading

0 comments on commit f204083

Please sign in to comment.