Skip to content

Commit

Permalink
Upgrade dependencies and fix tests (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino authored Aug 8, 2022
1 parent d8db105 commit 4f513e2
Show file tree
Hide file tree
Showing 7 changed files with 853 additions and 103 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Uninstalling a plugin
```
$ jf hello-frog hello world --shout
NEW GREETING: HELLO WORLD!
NEW GREETING: HELLO WORLD
```

### Environment variables
Expand Down
7 changes: 5 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 1.0.1 (September 27, 2021)
## 0.1.2 (August 8, 2022)
- Upgrade jfrog-cli-core and jfrog-client-go

## 1.0.0 (September 11, 2020)
## 0.1.1 (September 27, 2021)
- Upgrade jfrog-cli-core and jfrog-client-go

## 0.1.0 (September 11, 2020)
- Initial release
2 changes: 1 addition & 1 deletion commands/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func helloCmd(c *components.Context) error {
return nil
}
if len(c.Arguments) > 1 {
return errors.New("too many arguments receieved. Now run the command again, with one argument only")
return errors.New("too many arguments received. Now run the command again, with one argument only")
}

var conf = new(helloConfiguration)
Expand Down
4 changes: 2 additions & 2 deletions commands/hello_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func TestSimpleHello(t *testing.T) {
conf := &helloConfiguration{
addressee: "World",
}
assert.Equal(t, doGreet(conf), "Hello World!")
assert.Equal(t, doGreet(conf), "Hello World")
}

func TestComplexHello(t *testing.T) {
Expand All @@ -18,5 +18,5 @@ func TestComplexHello(t *testing.T) {
shout: true,
prefix: "test: ",
}
assert.Equal(t, doGreet(conf), "TEST: HELLO WORLD!\nTEST: HELLO WORLD!\nTEST: HELLO WORLD!")
assert.Equal(t, doGreet(conf), "TEST: HELLO WORLD")
}
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jfrog/jfrog-cli-plugin-template
go 1.14

require (
github.com/jfrog/jfrog-cli-core/v2 v2.11.3
github.com/jfrog/jfrog-client-go v1.11.3
github.com/stretchr/testify v1.7.0
github.com/jfrog/jfrog-cli-core/v2 v2.19.1
github.com/jfrog/jfrog-client-go v1.18.1
github.com/stretchr/testify v1.8.0
)
933 changes: 840 additions & 93 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func getApp() components.App {
app := components.App{}
app.Name = "hello-frog"
app.Description = "Easily greet anyone."
app.Version = "v0.1.0"
app.Version = "v0.1.2"
app.Commands = getCommands()
return app
}
Expand Down

0 comments on commit 4f513e2

Please sign in to comment.