feat: modify pkg name
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Atomctl 脚手架工具命令指南
|
# Atomctl 脚手架工具命令指南
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```
|
||||||
|
go install go.ipao.vip/atomctl@latest
|
||||||
|
```
|
||||||
|
|
||||||
## 命令列表
|
## 命令列表
|
||||||
|
|
||||||
### 生成命令
|
### 生成命令
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils"
|
"go.ipao.vip/atomctl/pkg/utils"
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/generator"
|
"go.ipao.vip/atomctl/pkg/utils/generator"
|
||||||
_ "github.com/lib/pq"
|
_ "github.com/lib/pq"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
pgDatabase "git.ipao.vip/rogeecn/atomctl/pkg/postgres"
|
pgDatabase "go.ipao.vip/atomctl/pkg/postgres"
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/go-jet/jet/v2/generator/metadata"
|
"github.com/go-jet/jet/v2/generator/metadata"
|
||||||
"github.com/go-jet/jet/v2/generator/postgres"
|
"github.com/go-jet/jet/v2/generator/postgres"
|
||||||
"github.com/go-jet/jet/v2/generator/template"
|
"github.com/go-jet/jet/v2/generator/template"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/ast/provider"
|
"go.ipao.vip/atomctl/pkg/ast/provider"
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/ast/route"
|
"go.ipao.vip/atomctl/pkg/ast/route"
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@@ -24,7 +24,7 @@ func CommandGenRoute(root *cobra.Command) {
|
|||||||
root.AddCommand(cmd)
|
root.AddCommand(cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://git.ipao.vip/rogeecn/atomctl/pkg/swag?tab=readme-ov-file#api-operation
|
// https://go.ipao.vip/atomctl/pkg/swag?tab=readme-ov-file#api-operation
|
||||||
func commandGenRouteE(cmd *cobra.Command, args []string) error {
|
func commandGenRouteE(cmd *cobra.Command, args []string) error {
|
||||||
var err error
|
var err error
|
||||||
var path string
|
var path string
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/postgres"
|
"go.ipao.vip/atomctl/pkg/postgres"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/pressly/goose/v3"
|
"github.com/pressly/goose/v3"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"git.ipao.vip/rogeecn/atomctl/templates"
|
"go.ipao.vip/atomctl/templates"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"git.ipao.vip/rogeecn/atomctl/templates"
|
"go.ipao.vip/atomctl/templates"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"git.ipao.vip/rogeecn/atomctl/templates"
|
"go.ipao.vip/atomctl/templates"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/templates"
|
"go.ipao.vip/atomctl/templates"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/templates"
|
"go.ipao.vip/atomctl/templates"
|
||||||
"github.com/iancoleman/strcase"
|
"github.com/iancoleman/strcase"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module git.ipao.vip/rogeecn/atomctl
|
module go.ipao.vip/atomctl
|
||||||
|
|
||||||
go 1.23.2
|
go 1.23.2
|
||||||
|
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.ipao.vip/rogeecn/atomctl/cmd"
|
"go.ipao.vip/atomctl/cmd"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
"golang.org/x/tools/imports"
|
"golang.org/x/tools/imports"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/Masterminds/sprig/v3"
|
"github.com/Masterminds/sprig/v3"
|
||||||
"github.com/iancoleman/strcase"
|
"github.com/iancoleman/strcase"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"go/token"
|
"go/token"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.ipao.vip/rogeecn/atomctl/pkg/utils/gomod"
|
"go.ipao.vip/atomctl/pkg/utils/gomod"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
. "{{.ProjectPackage}}/pkg/f"
|
. "{{.ProjectPackage}}/pkg/f"
|
||||||
|
|
||||||
_ "git.ipao.vip/rogeecn/atom"
|
_ "go.ipao.vip/atom"
|
||||||
_ "git.ipao.vip/rogeecn/atom/contracts"
|
_ "go.ipao.vip/atom/contracts"
|
||||||
"github.com/gofiber/fiber/v3"
|
"github.com/gofiber/fiber/v3"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -39,4 +39,4 @@ jobs:
|
|||||||
- name: Build final Docker image
|
- name: Build final Docker image
|
||||||
run: |
|
run: |
|
||||||
docker login -u ${{ secrets.DOCKER_AF_USERNAME }} -p ${{ secrets.DOCKER_AF_PASSWORD }} docker-af.hub.ipao.vip
|
docker login -u ${{ secrets.DOCKER_AF_USERNAME }} -p ${{ secrets.DOCKER_AF_PASSWORD }} docker-af.hub.ipao.vip
|
||||||
docker build --push -t docker-af.hub.ipao.vip/rogeecn/qvyun:latest .
|
docker build --push -t docker-af.hub.ipao.vip/rogeecn/test:latest .
|
||||||
|
|||||||
Reference in New Issue
Block a user