Closed zzaakiirr closed 2 months ago
@rafaelgomesxyz can we change the behavior of the command so that if the user doesn't provide the project config, it generates a default one?
@borela This is definitely a bug, it should generate a config file by default. We even have a template for it: https://github.com/shakacode/control-plane-flow/blob/main/lib/generator_templates/controlplane.yml
@zzaakiirr This is most likely because VALIDATIONS = [].freeze
is missing from Command::Generate
. I forgot to add it there when I added the doctor
command.
@zzaakiirr This is most likely because
VALIDATIONS = [].freeze
is missing fromCommand::Generate
. I forgot to add it there when I added thedoctor
command.
You are right, adding VALIDATIONS = [].freeze
to Command::Generate
fixed the issue - now expected directory and files are created
@rafaelgomesxyz Can I open PR for this or will you work on this? We need to fix test for this too (spec/command/generate_spec.rb:30
)
Feel free to open it.
Command
cpflow generate
command's description states:Expected behaviuor
User expects that invoking this command will create
.controlplane
directory with basic config and templatesActual behaviuor
Command fails with error: