diff --git a/command/addon_delete.go b/command/addon_delete.go index a4e66e0c..c9ace0ad 100644 --- a/command/addon_delete.go +++ b/command/addon_delete.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "strings" ) diff --git a/command/addon_install.go b/command/addon_install.go index c166c8a3..9cb1bc85 100644 --- a/command/addon_install.go +++ b/command/addon_install.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/addon_list.go b/command/addon_list.go index 7192d254..4a706824 100644 --- a/command/addon_list.go +++ b/command/addon_list.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/addon_show.go b/command/addon_show.go index 05f7b09f..082c086a 100644 --- a/command/addon_show.go +++ b/command/addon_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/addon_update.go b/command/addon_update.go index 271a940f..b8ce1a8f 100644 --- a/command/addon_update.go +++ b/command/addon_update.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "strings" ) diff --git a/command/escalation_policy_create.go b/command/escalation_policy_create.go index 4c1b03d9..38a0ed28 100644 --- a/command/escalation_policy_create.go +++ b/command/escalation_policy_create.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/escalation_policy_list.go b/command/escalation_policy_list.go index dacc118b..417aa202 100644 --- a/command/escalation_policy_list.go +++ b/command/escalation_policy_list.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/escalation_policy_show.go b/command/escalation_policy_show.go index abbbd32f..2d795c75 100644 --- a/command/escalation_policy_show.go +++ b/command/escalation_policy_show.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/event_v2_manage.go b/command/event_v2_manage.go index e6f86c01..dd974ebb 100644 --- a/command/event_v2_manage.go +++ b/command/event_v2_manage.go @@ -7,7 +7,7 @@ import ( "strings" pagerduty "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/incident_list.go b/command/incident_list.go index 48b4ca6f..7a521dae 100644 --- a/command/incident_list.go +++ b/command/incident_list.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/maintenance_window_create.go b/command/maintenance_window_create.go index d2c320e7..55be4c61 100644 --- a/command/maintenance_window_create.go +++ b/command/maintenance_window_create.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/meta.go b/command/meta.go index 371accce..28051443 100644 --- a/command/meta.go +++ b/command/meta.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/go-homedir" "gopkg.in/yaml.v2" "io/ioutil" diff --git a/command/oncall_list.go b/command/oncall_list.go index 2e3025e8..8f152f67 100644 --- a/command/oncall_list.go +++ b/command/oncall_list.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" ) diff --git a/command/schedule_create.go b/command/schedule_create.go index 4f5bc841..14831b99 100644 --- a/command/schedule_create.go +++ b/command/schedule_create.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/schedule_list.go b/command/schedule_list.go index faed8856..b98e51ea 100644 --- a/command/schedule_list.go +++ b/command/schedule_list.go @@ -7,7 +7,7 @@ import ( yaml "gopkg.in/yaml.v2" pagerduty "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/schedule_override_create.go b/command/schedule_override_create.go index 6a76d042..68bd2c58 100644 --- a/command/schedule_override_create.go +++ b/command/schedule_override_create.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/service_create.go b/command/service_create.go index ca32475d..cdd74486 100644 --- a/command/service_create.go +++ b/command/service_create.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/service_integration_create.go b/command/service_integration_create.go index c84987ed..d8f4e1c4 100644 --- a/command/service_integration_create.go +++ b/command/service_integration_create.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/service_list.go b/command/service_list.go index 85aae15d..1be0240c 100644 --- a/command/service_list.go +++ b/command/service_list.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/service_show.go b/command/service_show.go index 2534289d..e67945db 100644 --- a/command/service_show.go +++ b/command/service_show.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/team_list.go b/command/team_list.go index caf1ea43..f8dc276f 100644 --- a/command/team_list.go +++ b/command/team_list.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/team_show.go b/command/team_show.go index 7e81f5f8..4e0f7bca 100644 --- a/command/team_show.go +++ b/command/team_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/user_list.go b/command/user_list.go index 8a6f8952..1fc8e562 100644 --- a/command/user_list.go +++ b/command/user_list.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" ) diff --git a/command/vendor_list.go b/command/vendor_list.go index 8d5648f2..91c2092a 100644 --- a/command/vendor_list.go +++ b/command/vendor_list.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/vendor_show.go b/command/vendor_show.go index f42a753b..9abb3f03 100644 --- a/command/vendor_show.go +++ b/command/vendor_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..017ff18f --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module github.com/PagerDuty/go-pagerduty + +go 1.12 + +require ( + github.com/google/go-querystring v1.0.0 + github.com/mitchellh/cli v1.0.0 + github.com/mitchellh/go-homedir v1.1.0 + github.com/sirupsen/logrus v1.4.2 + gopkg.in/yaml.v2 v2.2.2 +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..84af6c83 --- /dev/null +++ b/go.sum @@ -0,0 +1,40 @@ +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=