Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# rog-codegen

`rog-codegen` turns [OpenAPI 3.0 specs](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md) into Ruby on Rails code, cutting down on boilerplate so you can focus on your business logic and adding real value to your organization.

# Installation

`rog-codegen` requires [Go](https://go.dev/dl/) >= `1.20`.

You can install `rog-codegen` as a binary:

```bash
go install github.com/trungvitlonx/rog-codegen@latest
```
4 changes: 2 additions & 2 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/trungle-csv/rog-codegen/internal/codegen"
"github.com/trungle-csv/rog-codegen/internal/util"
"github.com/trungvitlonx/rog-codegen/internal/codegen"
"github.com/trungvitlonx/rog-codegen/internal/util"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"

"github.com/spf13/cobra"
"github.com/trungle-csv/rog-codegen/internal/codegen"
"github.com/trungvitlonx/rog-codegen/internal/codegen"
)

// initCmd represents the init command
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/trungle-csv/rog-codegen
module github.com/trungvitlonx/rog-codegen

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion internal/codegen/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/getkin/kin-openapi/openapi3"
"github.com/iancoleman/strcase"
"github.com/trungle-csv/rog-codegen/internal/util"
"github.com/trungvitlonx/rog-codegen/internal/util"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/codegen/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/getkin/kin-openapi/openapi3"
"github.com/trungle-csv/rog-codegen/internal/util"
"github.com/trungvitlonx/rog-codegen/internal/util"
)

type ParameterDefinition struct {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/trungle-csv/rog-codegen/cmd"
import "github.com/trungvitlonx/rog-codegen/cmd"

func main() {
cmd.Execute()
Expand Down