coreeng / corectl

CLI for the CECG Core Platform https://www.cecg.io/core-platform/
https://www.cecg.io/core-platform/
Apache License 2.0
1 stars 1 forks source link

Set working_directory and version_prefix arguments for monorepo flow #35

Closed lukasz-kaniowski closed 2 months ago

lukasz-kaniowski commented 2 months ago

When rendering application inside of monorepo github workflows require knowing in which directory application resides and what should be the prefix for version.

Setting parameter defintion to

parameters:
  - name: working_directory
    description: working directory
    type: string
    optional: true
    default: './'
  - name: `
    description: version prefix
    type: string
    optional: true
    default: 'v'

and then override working_directory and version_prefix in monorepo flow does the trick.

I've refactored code a bit to only pass data in CreateOp and everything else is set as dependency on struct

Introduce TemplateRenderer interface to be able to test error scenario in tests