diff --git a/README.md b/README.md index e85d272..92ad81c 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ OPTIONS: ## install run command to install ```bash -go install github.com/czyt/kilot/cmd/kilot@latest +go install github.com/ca-x/kilot/cmd/kilot@latest ``` ## usage after installed,run `kilot -h` for usage help. diff --git a/cmd/kilot/kilot.go b/cmd/kilot/kilot.go index d89c0f0..db083a6 100644 --- a/cmd/kilot/kilot.go +++ b/cmd/kilot/kilot.go @@ -1,7 +1,7 @@ package main import ( - "github.com/czyt/kilot/cmd/kilot/kratos" + "github.com/ca-x/kilot/cmd/kilot/kratos" "github.com/urfave/cli/v2" "log" "os" @@ -22,7 +22,7 @@ func main() { }, }, Name: "kilot", - Version: "0.1.19", + Version: "0.1.20", EnableBashCompletion: true, Commands: []*cli.Command{ { diff --git a/cmd/kilot/kratos/base.go b/cmd/kilot/kratos/base.go index 8147617..4d7d774 100644 --- a/cmd/kilot/kratos/base.go +++ b/cmd/kilot/kratos/base.go @@ -1,7 +1,7 @@ package kratos import ( - "github.com/czyt/kilot/cmd/kilot/kratos/mongo" + "github.com/ca-x/kilot/cmd/kilot/kratos/mongo" "github.com/urfave/cli/v2" ) diff --git a/cmd/kilot/kratos/mongo/handler.go b/cmd/kilot/kratos/mongo/handler.go index 220b6c9..0d2d2b0 100644 --- a/cmd/kilot/kratos/mongo/handler.go +++ b/cmd/kilot/kratos/mongo/handler.go @@ -2,7 +2,7 @@ package mongo import ( "errors" - "github.com/czyt/kilot/cmd/kilot/kratos/mongo/internal/generate" + "github.com/ca-x/kilot/cmd/kilot/kratos/mongo/internal/generate" "github.com/urfave/cli/v2" ) diff --git a/cmd/kilot/kratos/mongo/internal/generate/gen.go b/cmd/kilot/kratos/mongo/internal/generate/gen.go index fd39d9f..36ad201 100644 --- a/cmd/kilot/kratos/mongo/internal/generate/gen.go +++ b/cmd/kilot/kratos/mongo/internal/generate/gen.go @@ -2,10 +2,10 @@ package generate import ( "fmt" - "github.com/czyt/kilot/cmd/kilot/kratos/internal/templateContext" - "github.com/czyt/kilot/cmd/kilot/pkg/formater" - "github.com/czyt/kilot/cmd/kilot/pkg/ioplus" - "github.com/czyt/kilot/cmd/kilot/pkg/templator" + "github.com/ca-x/kilot/cmd/kilot/kratos/internal/templateContext" + "github.com/ca-x/kilot/cmd/kilot/pkg/formater" + "github.com/ca-x/kilot/cmd/kilot/pkg/ioplus" + "github.com/ca-x/kilot/cmd/kilot/pkg/templator" "log" ) diff --git a/cmd/kilot/kratos/mongo/internal/generate/normal.go b/cmd/kilot/kratos/mongo/internal/generate/normal.go index 00c9cef..ff22092 100644 --- a/cmd/kilot/kratos/mongo/internal/generate/normal.go +++ b/cmd/kilot/kratos/mongo/internal/generate/normal.go @@ -1,9 +1,9 @@ package generate import ( - "github.com/czyt/kilot/cmd/kilot/kratos/internal/templateContext" - "github.com/czyt/kilot/cmd/kilot/kratos/mongo/internal/templates" - "github.com/czyt/kilot/cmd/kilot/pkg/templator" + "github.com/ca-x/kilot/cmd/kilot/kratos/internal/templateContext" + "github.com/ca-x/kilot/cmd/kilot/kratos/mongo/internal/templates" + "github.com/ca-x/kilot/cmd/kilot/pkg/templator" "log" ) diff --git a/cmd/kilot/kratos/mongo/internal/generate/odm.go b/cmd/kilot/kratos/mongo/internal/generate/odm.go index 8a0523c..df00243 100644 --- a/cmd/kilot/kratos/mongo/internal/generate/odm.go +++ b/cmd/kilot/kratos/mongo/internal/generate/odm.go @@ -1,9 +1,9 @@ package generate import ( - "github.com/czyt/kilot/cmd/kilot/kratos/internal/templateContext" - "github.com/czyt/kilot/cmd/kilot/kratos/mongo/internal/templates" - "github.com/czyt/kilot/cmd/kilot/pkg/templator" + "github.com/ca-x/kilot/cmd/kilot/kratos/internal/templateContext" + "github.com/ca-x/kilot/cmd/kilot/kratos/mongo/internal/templates" + "github.com/ca-x/kilot/cmd/kilot/pkg/templator" "log" ) diff --git a/cmd/kilot/kratos/mongo/options.go b/cmd/kilot/kratos/mongo/options.go index 2e905f7..0b0331c 100644 --- a/cmd/kilot/kratos/mongo/options.go +++ b/cmd/kilot/kratos/mongo/options.go @@ -1,7 +1,7 @@ package mongo import ( - "github.com/czyt/kilot/cmd/kilot/kratos/internal/templateContext" + "github.com/ca-x/kilot/cmd/kilot/kratos/internal/templateContext" "github.com/urfave/cli/v2" ) diff --git a/cmd/kilot/pkg/templator/templator.go b/cmd/kilot/pkg/templator/templator.go index 9e0343b..f733091 100644 --- a/cmd/kilot/pkg/templator/templator.go +++ b/cmd/kilot/pkg/templator/templator.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" "fmt" - "github.com/czyt/kilot/cmd/kilot/pkg/formater" + "github.com/ca-x/kilot/cmd/kilot/pkg/formater" "text/template" ) diff --git a/go.mod b/go.mod index df86286..debd9f0 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,14 @@ -module github.com/czyt/kilot +module github.com/ca-x/kilot go 1.19 require ( - github.com/iancoleman/strcase v0.2.0 - github.com/urfave/cli/v2 v2.14.0 + github.com/iancoleman/strcase v0.3.0 + github.com/urfave/cli/v2 v2.27.1 ) require ( - github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e // indirect ) diff --git a/go.sum b/go.sum index 91e7fc1..0072223 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,18 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/urfave/cli/v2 v2.14.0 h1:sFRL29Dm9JhXSMYb96raDeo/Q/JRyPXPs8u+4CkMlI8= github.com/urfave/cli/v2 v2.14.0/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI= +github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= +github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= +github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e h1:+SOyEddqYF09QP7vr7CgJ1eti3pY9Fn3LHO1M1r/0sI= +github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=