diff --git a/api/client.go b/api/client.go index f17daff..dd1dd5d 100644 --- a/api/client.go +++ b/api/client.go @@ -14,10 +14,11 @@ import ( "mime/multipart" "os" "path/filepath" - "xurl/auth" - "xurl/config" - xurlErrors "xurl/errors" - "xurl/version" + + "github.com/xdevplatform/xurl/auth" + "github.com/xdevplatform/xurl/config" + xurlErrors "github.com/xdevplatform/xurl/errors" + "github.com/xdevplatform/xurl/version" ) // RequestOptions contains common options for API requests diff --git a/api/client_test.go b/api/client_test.go index 67f1bcb..1b09534 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "xurl/auth" - "xurl/config" - xurlErrors "xurl/errors" - "xurl/store" + "github.com/xdevplatform/xurl/auth" + "github.com/xdevplatform/xurl/config" + xurlErrors "github.com/xdevplatform/xurl/errors" + "github.com/xdevplatform/xurl/store" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/api/execute.go b/api/execute.go index 4e1a678..a974477 100644 --- a/api/execute.go +++ b/api/execute.go @@ -3,7 +3,8 @@ package api import ( "encoding/json" "fmt" - "xurl/utils" + + "github.com/xdevplatform/xurl/utils" ) // ExecuteRequest handles the execution of a regular API request diff --git a/api/media.go b/api/media.go index 9b2da85..4f139bd 100644 --- a/api/media.go +++ b/api/media.go @@ -9,7 +9,8 @@ import ( "strconv" "strings" "time" - "xurl/utils" + + "github.com/xdevplatform/xurl/utils" ) const ( diff --git a/auth/auth.go b/auth/auth.go index c3c00bd..27f6b9d 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -19,9 +19,9 @@ import ( "strings" "time" - "xurl/config" - xurlErrors "xurl/errors" - "xurl/store" + "github.com/xdevplatform/xurl/config" + xurlErrors "github.com/xdevplatform/xurl/errors" + "github.com/xdevplatform/xurl/store" "runtime" diff --git a/auth/auth_test.go b/auth/auth_test.go index 9fcb148..46cd229 100644 --- a/auth/auth_test.go +++ b/auth/auth_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "xurl/config" - "xurl/store" + "github.com/xdevplatform/xurl/config" + "github.com/xdevplatform/xurl/store" ) // Helper function to create a temporary token store for testing diff --git a/auth/listener.go b/auth/listener.go index 11d8c21..b9465ca 100644 --- a/auth/listener.go +++ b/auth/listener.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - xurlErrors "xurl/errors" + xurlErrors "github.com/xdevplatform/xurl/errors" ) func StartListener(port int, callback func(code, state string) error) error { diff --git a/cli/auth.go b/cli/auth.go index 14b4b15..1fa8b0c 100644 --- a/cli/auth.go +++ b/cli/auth.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" - "xurl/auth" - "xurl/store" + "github.com/xdevplatform/xurl/auth" + "github.com/xdevplatform/xurl/store" ) // CreateAuthCommand creates the auth command and its subcommands diff --git a/cli/media.go b/cli/media.go index 10d1aac..5d7acb9 100644 --- a/cli/media.go +++ b/cli/media.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "xurl/api" - "xurl/auth" - "xurl/config" + "github.com/xdevplatform/xurl/api" + "github.com/xdevplatform/xurl/auth" + "github.com/xdevplatform/xurl/config" ) // CreateMediaCommand creates the media command and its subcommands diff --git a/cli/root.go b/cli/root.go index 66dfd50..1efce13 100644 --- a/cli/root.go +++ b/cli/root.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "xurl/api" - "xurl/auth" - "xurl/config" + "github.com/xdevplatform/xurl/api" + "github.com/xdevplatform/xurl/auth" + "github.com/xdevplatform/xurl/config" ) // CreateRootCommand creates the root command for the xurl CLI diff --git a/cli/version.go b/cli/version.go index ffa3c4b..b2a2919 100644 --- a/cli/version.go +++ b/cli/version.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "xurl/version" + "github.com/xdevplatform/xurl/version" ) // CreateVersionCommand creates the version command diff --git a/cli/webhook.go b/cli/webhook.go index bce868b..5568a5a 100644 --- a/cli/webhook.go +++ b/cli/webhook.go @@ -14,7 +14,7 @@ import ( "os" "strings" - "xurl/auth" + "github.com/xdevplatform/xurl/auth" "github.com/fatih/color" "github.com/spf13/cobra" diff --git a/go.mod b/go.mod index 5f693ef..a7a4619 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module xurl +module github.com/xdevplatform/xurl go 1.21 @@ -6,6 +6,8 @@ require ( github.com/fatih/color v1.18.0 github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.10.0 + github.com/tidwall/pretty v1.2.1 + golang.ngrok.com/ngrok v1.13.0 golang.org/x/oauth2 v0.18.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -23,10 +25,8 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.5.2 // indirect - github.com/tidwall/pretty v1.2.1 // indirect go.uber.org/multierr v1.11.0 // indirect golang.ngrok.com/muxado/v2 v2.0.1 // indirect - golang.ngrok.com/ngrok v1.13.0 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.26.0 // indirect diff --git a/go.sum b/go.sum index c1259bc..eeb13ee 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/inconshreveable/log15 v3.0.0-testing.5+incompatible h1:VryeOTiaZfAzwx8xBcID1KlJCeoWSIpsNbSk+/D2LNk= github.com/inconshreveable/log15 v3.0.0-testing.5+incompatible/go.mod h1:cOaXtrgN4ScfRrD9Bre7U1thNq5RtJ8ZoP4iXVGRj6o= github.com/inconshreveable/log15/v3 v3.0.0-testing.5 h1:h4e0f3kjgg+RJBlKOabrohjHe47D3bbAB9BgMrc3DYA= @@ -45,9 +47,9 @@ golang.ngrok.com/muxado/v2 v2.0.1/go.mod h1:wzxJYX4xiAtmwumzL+QsukVwFRXmPNv86vB8 golang.ngrok.com/ngrok v1.13.0 h1:6SeOS+DAeIaHlkDmNH5waFHv0xjlavOV3wml0Z59/8k= golang.ngrok.com/ngrok v1.13.0/go.mod h1:BKOMdoZXfD4w6o3EtE7Cu9TVbaUWBqptrZRWnVcAuI4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= -golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= @@ -57,8 +59,6 @@ golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= @@ -71,8 +71,6 @@ google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6 google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/main.go b/main.go index 5866b55..505ed21 100644 --- a/main.go +++ b/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "xurl/auth" - "xurl/cli" - "xurl/config" + "github.com/xdevplatform/xurl/auth" + "github.com/xdevplatform/xurl/cli" + "github.com/xdevplatform/xurl/config" ) func main() { diff --git a/store/tokens.go b/store/tokens.go index 7cb05ec..b0f7644 100644 --- a/store/tokens.go +++ b/store/tokens.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "xurl/errors" + "github.com/xdevplatform/xurl/errors" "gopkg.in/yaml.v3" )