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 for configuration snippets embeddable into scripts #8

Open
dnet opened this issue Apr 1, 2020 · 0 comments
Open

Support for configuration snippets embeddable into scripts #8

dnet opened this issue Apr 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@dnet
Copy link
Contributor

dnet commented Apr 1, 2020

When sharing useful scripts that can be used by Piper, it might help installing such a script if the YAML configuration could be embedded in a multiline comment or string. This way, the script itself would ignore it, but Piper could "install" the script by parsing the embedded YAML metadata.

An imaginary example:

-----BEGIN PIPER METADATA-----
Type: messageViewer
Placeholder: SCRIPTNAME

prefix: [python, SCRIPTNAME]
inputMethod: stdin
name: Widget frobnicator
filter:
  regex:
    pattern: ^widget
-----END PIPER METADATA-----
@dnet dnet added the enhancement New feature or request label Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant