The CLI tool b2t transforms a given BPMN process into boilerplate code of your selected
programming language.
go run main.go generate --bpmn examples/simple-process/simple-process.bpmn -o examples/simple-process -l goWe use cobra for creating our CLI tool.
Additionally, you can install cobra-cli as a helper to create boilerplate code.
Install cobra-cli
go install github.com/spf13/cobra-cli@latestAdd a new command
cobra-cli add <command>Usage of b2t
go run main.go generate --lang go --output person.go
go run main.go generate --lang kotlin --output Person.kt