Commit 50778940 authored by Umberto Baldi's avatar Umberto Baldi Committed by Silvano Cerza

[skip changelog] Update cobra to latest version (#1430)

* bump github.com/spf13/cobra to 1.2.1

* go mod tidy

* fix CI failing

* update powershell tests, in new version of cobra the completion file is different
parent 637e9078
This diff is collapsed.
......@@ -6,5 +6,5 @@ replace github.com/arduino/arduino-cli => ../
require (
github.com/arduino/arduino-cli v0.0.0-20200109150215-ffa84fdaab21
google.golang.org/grpc v1.37.0
google.golang.org/grpc v1.38.0
)
This diff is collapsed.
......@@ -6,6 +6,6 @@ replace github.com/arduino/arduino-cli => ../../..
require (
github.com/arduino/arduino-cli v0.0.0-20200109150215-ffa84fdaab21
google.golang.org/grpc v1.37.0
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.26.0
)
This diff is collapsed.
......@@ -7,5 +7,5 @@ replace github.com/arduino/arduino-cli => ../
require (
github.com/arduino/arduino-cli v0.0.0
github.com/spf13/cobra v1.0.1-0.20200710201246-675ae5f5a98c
github.com/spf13/cobra v1.2.1
)
This diff is collapsed.
......@@ -33,10 +33,10 @@ require (
github.com/segmentio/stats/v4 v4.5.3
github.com/sergi/go-diff v1.1.0 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cobra v1.0.1-0.20200710201246-675ae5f5a98c
github.com/spf13/jwalterweatherman v1.0.0
github.com/spf13/viper v1.6.2
github.com/stretchr/testify v1.6.1
github.com/spf13/cobra v1.2.1
github.com/spf13/jwalterweatherman v1.1.0
github.com/spf13/viper v1.8.1
github.com/stretchr/testify v1.7.0
go.bug.st/cleanup v1.0.0
go.bug.st/downloader/v2 v2.1.1
go.bug.st/relaxed-semver v0.0.0-20190922224835-391e10178d18
......@@ -44,12 +44,11 @@ require (
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45 // indirect
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125 // indirect
golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6 // indirect
golang.org/x/text v0.3.6
google.golang.org/genproto v0.0.0-20210504143626-3b2ad6ccc450
google.golang.org/grpc v1.37.0
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.26.0
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
gopkg.in/src-d/go-git.v4 v4.13.1
gopkg.in/yaml.v2 v2.3.0
gopkg.in/yaml.v2 v2.4.0
)
This diff is collapsed.
......@@ -49,8 +49,8 @@ def test_completion_powershell(run_command):
result = run_command("completion powershell")
assert result.ok
assert result.stderr == ""
assert "Register-ArgumentCompleter -Native -CommandName 'arduino-cli' -ScriptBlock {" in result.stdout
assert "'arduino-cli;completion' {" in result.stdout
assert "# powershell completion for arduino-cli" in result.stdout
assert "Register-ArgumentCompleter -CommandName 'arduino-cli' -ScriptBlock" in result.stdout
def test_completion_bash_no_desc(run_command):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment