Skip to content

ng g @scullyio/init:post: Let users specify file extension #213

@d-koppenhagen

Description

@d-koppenhagen

🧩 Feature request

Description

As Scully supports AsciiDoc and markdown files out of the box, a user should be able to generate a .adoc file as well.

Describe the solution you'd like

I think it would be good to prompt the user for the target file type (.md set by default) or set it via an option directly:

ng g @scullyio/init:post --name="my asciidoc post" --type="adoc"

This should do the following:

  • create the target file with the correct file extension ('.md' or '.adoc')

I think the following things should be considered:

  • The prompt should a user select from an enum (md, adoc)
  • The metaDataFile option should still be available, also for AsciiDoc file. But AsciiDoc uses another meta data format. So the yml template should be either converted, ignored, or complemented by another template for asciidoc files

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions