-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
A nice feature would be for template creation to read from stdin. Currently when you run krontab create template <name> a blank template file will be opened in a text editor.
It would be nice if we could pipe some text into that command to give us a starting point. For example we could effectively duplicate the default template by running
krontab get template default | krontab create template <new template>
This would open the new template for editing but the file would be already populated with the contents of the default template.
We could also include a flag to skip the interactive part which would allow a one line duplication. We should also think about what happens if the user exits from the test editor without saving, should it create the new template or not?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed