CLI for generating Polybase Collections API code.
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
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.
...
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
Copyright © 2022-2023 Durudex. Released under the MIT license.