Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate from nothing #1383

Closed
MikeSchumacherCapgemini opened this issue Aug 2, 2021 · 2 comments
Closed

Generate from nothing #1383

MikeSchumacherCapgemini opened this issue Aug 2, 2021 · 2 comments

Comments

@MikeSchumacherCapgemini
Copy link
Collaborator

As a Cobigen user, I want to be able to generate from no input file so that i can use Cobigen to start from scratch, while having no pre-configured files.

An example of an implementation could be to create a dialogue box asking for relevant information that would usually be taken from an input file, generating what would usually be the input file in addition to the other generation results.

This is a workshop topic, any ideas are welcome and can be discussed in the comments

@hohwille
Copy link
Member

My thoughts on this:

  • We need a declarative description of (required) variables (e.g. name=component, type=String, description="Please enter component name - may even include a default value or a validating regex) for such a generation increment (e.g. "Generate new component").
  • CobiGen needs to traverse all of these variables and see which of them are not yet populated (from context, cobigen.properites, etc.).
  • All variables not populated need to be filled by the user. In Eclipse via UI popup dialog and in CLI via commandline propts. For CLI any propery can also be provided directly as CLI arg.
  • After the variables are populated, cobigen has them as its varibles and can proceed as usual with template generation.

Story sounds easy to implement but creates high value as this use-case is highly request.

@jan-vcapgemini
Copy link
Collaborator

Could be combined with this: #192

@devonfw devonfw locked and limited conversation to collaborators Oct 26, 2021
@maybeec maybeec closed this as completed Oct 26, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants