Publish post command

I love Hugo but one thing I always struggle with is updating date values on posts and remembering the remove draft: true tags.

It would be fantastic if Hugo had a “publish” command or at least something to easily update the date tag to the current time.

My use case is I am really slow at writing posts so when I use the hugo new command to create a new post it sets the date correctly but by the time I get around to actually publishing it its often days or weeks later so I have to manually go back and set it. Being able to run hugo publish or another command to quickly set/update the posts time would be fantastic.

Although not exactly what you’re asking for, this might meet your needs:

date = ["lastmod"]