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

Add support for aliases #113

Open
bitca-andrei opened this issue Mar 7, 2022 · 1 comment
Open

Add support for aliases #113

bitca-andrei opened this issue Mar 7, 2022 · 1 comment

Comments

@bitca-andrei
Copy link
Collaborator

bitca-andrei commented Mar 7, 2022

After namespace support is added (#102), alias support for ingredients can be added, while also allowing array of strings on the ingredients (without alias):

ingredients:
  - alias: sdh
    repo: https://github.com/hygen-generators/scaffolder-demo-hygen
  - alias: gag
    name: github-actions-generators
instructions:
  - ingredient: sdh
    generator: monorepo
    action: new
    args:
      - option: name
        value: simple-service
  - ingredient: gag
    generator: github-actions
    action: build-test-publish
    args:
      - option: admin-github-token
        value: SUPER_SECRET_TOKEN
      - option: main-branch
        value: main
      - option: node-version
        value: '14.11'
      - option: use-commit-lint
      - option: use-lerna
@bbeesley
Copy link
Owner

bbeesley commented Apr 4, 2022

After namespace support is added (#102), alias support for ingredients can be added, while also allowing array of strings on the ingredients (without alias):

Do we need this or is it enough to use yaml anchors like in the example here:

- &gha hygen-github-action-generators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants