Skip to content

Commit

Permalink
export paramgen
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Oct 30, 2024
1 parent f04a489 commit c62c716
Show file tree
Hide file tree
Showing 26 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions paramgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os"
"strings"

"github.com/conduitio/conduit-commons/paramgen/internal"
"github.com/conduitio/conduit-commons/paramgen/paramgen"
)

func main() {
Expand All @@ -32,12 +32,12 @@ func main() {
args := parseFlags()

// parse the sdk parameters
params, pkg, err := internal.ParseParameters(args.path, args.structName)
params, pkg, err := paramgen.ParseParameters(args.path, args.structName)
if err != nil {
log.Fatalf("error: failed to parse parameters: %v", err)
}

code := internal.GenerateCode(params, pkg, args.structName)
code := paramgen.GenerateCode(params, pkg, args.structName)

path := strings.TrimSuffix(args.path, "/") + "/" + args.output
err = os.WriteFile(path, []byte(code), 0o600)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package paramgen

import (
"os"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

//nolint:err113,wrapcheck,staticcheck // we don't care about wrapping errors here, also ignore usage of ast.Package (deprecated)
package internal
package paramgen

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package paramgen

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package paramgen

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package paramgen

import (
"regexp"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c62c716

Please sign in to comment.