durudex / polygen

CLI for generating Polybase Collections API code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

polygen

CLI for generating Polybase Collections API code.

Setup

To get the PolyGen CLI, you need to have or install Go version >= 1.18. To check your current version of Go, use the go version command.

The command to install cli:

go install github.com/durudex/polygen/cmd/polygen@latest

Config

To start using PolyGen, you need to create a configuration file. It defines the rules for generating the code you need.

An example of a configuration file:

# .polygen.yml

collection:
  - "Collection"
  - "Namespace/Collection"

language:
  # Add configurations for the programming languages you need.
  # An example configuration is available in the GitHub repository.
  ...

Usage

To start generating code using the configuration you created, you need to use the CLI with the specified path to the configuration file.

The command to start code generation:

polygen --config .polygen.yml

License

Copyright © 2022-2023 Durudex. Released under the MIT license.

About

CLI for generating Polybase Collections API code.

License:MIT License


Languages

Language:Go 100.0%