Skip to content
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

Is there a way to put template in a directory without given name to the template? #2875

Open
mikeyoshino opened this issue Feb 18, 2021 · 1 comment
Labels
area: authoring Enhancements to the process of authoring, maintaining, and testing templates good first issue easy issue, good for first-time contribution to the repo Priority:2 Work that is important, but not critical for the release triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Milestone

Comments

@mikeyoshino
Copy link

I'm currently having a problem with putting a generated template in a directory, normally when preferNameDirectory is set to true, and you gave the name for -n. the template will be created inside a folder with the name of the folder is the name you have given to -n

My requirement is to generated a template in a folder but without given name to -n.
I would like a template to be generated in a folder that has a default name like "GeneratedCode" folder.
is there a way to give the default name to -n or to create a folder base on the default name.

@mikeyoshino mikeyoshino changed the title Is there a way to put everything directory without given name to the template? Is there a way to put template in a directory without given name to the template? Feb 18, 2021
@vlada-shubina
Copy link
Member

@mikeyoshino
Unfortunately, at the moment there is no way to force the template output be created to directory when -n or -o is not specified.

As a workaround, you can put the template content to subfolder ('GeneratedCode') inside the template definition and set preferNameDirectory to false. To allow the user change the name of that subfolder, you can use parameter symbol (--folder-name, as example) that renames the default subfolder name. However to do that user should use --folder-name, and not -n.

I will keep the issue open so we can discuss proper solution for this case.

@donJoseLuis donJoseLuis added triaged The issue was evaluated by the triage team, placed on correct area, next action defined. need-investigation The issue needs the second look and more investigation Priority:3 Work that is nice to have labels Feb 22, 2021
@bekir-ozturk bekir-ozturk added the need-pm-discussion Need agreement from PM that the issue aligns to targeted stories for any of the next 2 releases label Mar 10, 2021
@bekir-ozturk bekir-ozturk removed the need-pm-discussion Need agreement from PM that the issue aligns to targeted stories for any of the next 2 releases label Mar 17, 2021
@bekir-ozturk bekir-ozturk added this to the Backlog milestone Mar 22, 2021
@vlada-shubina vlada-shubina removed the need-investigation The issue needs the second look and more investigation label Oct 25, 2021
@YuliiaKovalova YuliiaKovalova added Priority:2 Work that is important, but not critical for the release area: authoring Enhancements to the process of authoring, maintaining, and testing templates good first issue easy issue, good for first-time contribution to the repo and removed Priority:3 Work that is nice to have labels May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: authoring Enhancements to the process of authoring, maintaining, and testing templates good first issue easy issue, good for first-time contribution to the repo Priority:2 Work that is important, but not critical for the release triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Projects
None yet
Development

No branches or pull requests

5 participants