-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow removing a template using the CLI #75
Comments
@alicenstar can you give us some more context? How would you like this to work? |
@tomek-ac I'm flexible in implementation but it'd be nice to be able to do something like |
My team was trying to set up a way to manage postmark templates in a repository using GitHub Actions and the Postmark CLI, but the only case we can't handle is if we want to delete a template. |
@alicenstar I opened a PR here I was having too much fun with this one and improved the UX by allowing users to select whether they want to delete by id (one or multiple) or delete all templates. :) Also added some extra check for delete all as it can be quite destructive. The underlying Postmark client already included a To use it locally run:
then
|
@rlueder thanks for working on this! @alicenstar what do you think? Would this work in your case? The proposed implementation seems to require providing the parameters interactively so it will probably not work in a hands-free GH action? |
I'd like for there to be a way to delete templates using the CLI. We are managing our templates using a GitHub repository, and this poses some difficulty in maintaining the templates long term.
The text was updated successfully, but these errors were encountered: