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

Support single file snippets #38

Open
hay-kot opened this issue Mar 8, 2023 · 0 comments
Open

Support single file snippets #38

hay-kot opened this issue Mar 8, 2023 · 0 comments

Comments

@hay-kot
Copy link
Owner

hay-kot commented Mar 8, 2023

Support ability to write single file snippets and use them from scaffold

Command

scaffold snip <snippet filename (optional extension)>

File Syntax

---
<scaffold file config>
---

<template>

Example

---
messages:
  pre: |
    # Example CLI scaffold

    This is an example CLI scaffold that can be used to generate a CLI application.
  post: |
    # You've generated a CLI application!

    You can now run the following commands:

    - `go run main.go` - Runs the main application and supports passing CLI args

questions:
  - name: "description"
    prompt:
      message: "Description of the project"
    required: true
---

Description: {{ .Scaffold.description }}
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

1 participant