Skip to content

Creating a template should read from stdin #26

@jacobtomlinson

Description

@jacobtomlinson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions