Skip to content

Commit

Permalink
fix: dbhost flag naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommi2Day committed Aug 15, 2023
1 parent 38b9d3a commit 7459db4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog tnscli

## [v3.7.10 - 2023-08-15]
### Changed
- use gomodules v1.9.4
### Fixed
- dhost flag naming

## [v3.7.9 - 2023-08-09]
### New
- add new flag --unit-tests to redirect output for unit tests
Expand Down
2 changes: 1 addition & 1 deletion cmd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func init() {
checkCmd.PersistentFlags().StringVarP(&dbPass, "password", "p", dbPass, "Password for real connect or set TNSCLI_PASSWORD")
checkCmd.PersistentFlags().BoolVarP(&a, "all", "a", false, "check all entries")
checkCmd.PersistentFlags().IntVarP(&timeout, "timeout", "t", timeout, "timeout in sec")
checkCmd.Flags().BoolVarP(&dbhostFlag, "dbhostFlag", "H", false, "print actual connected host:cdb:pdb")
checkCmd.Flags().BoolVarP(&dbhostFlag, "dbhost", "H", false, "print actual connected host:cdb:pdb")

portInfoCmd.Flags().StringVarP(&racinfo, "racinfo", "r", "", "path to racinfo.ini to resolve all RAC TCP Adresses, default $TNS_ADMIN/racinfo.ini")
portInfoCmd.Flags().StringVarP(&nameserver, "nameserver", "n", "", "alternative nameserver to use for DNS lookup (IP:PORT)")
Expand Down
2 changes: 1 addition & 1 deletion cmd/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func TestOracleConnect(t *testing.T) {
"check",
"--filename", filename,
"--service", alias,
"--dbhostFlag",
"--dbhost",
"--user", DBUSER,
"--password", DBPASSWORD,
"--timeout", fmt.Sprintf("%d", TIMEOUT),
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
github.com/tommi2day/gomodules v1.9.3
github.com/tommi2day/gomodules v1.9.4
github.com/x-cray/logrus-prefixed-formatter v0.5.2

)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2671,8 +2671,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQpIXDJRhQ=
github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE=
github.com/tommi2day/gomodules v1.9.3 h1:ht3QBuMIWOHdYdWsmFcJTFxKDC5DclgZfq3kvyTA8ck=
github.com/tommi2day/gomodules v1.9.3/go.mod h1:oEmXw2BTnhkZdbzDVjD3GSlehipKAJa16pvSK6v5Qbo=
github.com/tommi2day/gomodules v1.9.4 h1:eXOUjY7ycD+wTP4R0XRmzmi/35YiqJ0BceF6M5lAMqE=
github.com/tommi2day/gomodules v1.9.4/go.mod h1:oEmXw2BTnhkZdbzDVjD3GSlehipKAJa16pvSK6v5Qbo=
github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw=
github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw=
github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80 h1:nrZ3ySNYwJbSpD6ce9duiP+QkD3JuLCcWkdaehUS/3Y=
Expand Down

0 comments on commit 7459db4

Please sign in to comment.