surajssd / blog-generator

Generate Kubernetes Bangalore event reports
2 stars 0 forks source link

Generate a file automatically rather than dumping all output to stdout #4

Open surajssd opened 5 years ago

surajssd commented 5 years ago

Right now all of the output is dumped onto STDOUT.

2019/03/21 15:32:06 All clients ready
2019/03/21 15:32:08 Credentials verified
2019/03/21 15:32:09 Tweet text: RT @k8sBLR: @dolftax taking us through Kubernetes networking. Watch him live at: https://t.co/FkwgOxiuKE

#kubernetes #networking https://t… | Tweet Date: Sun Mar 17 15:14:25 +0000 2019 | Tweet ID: 1107299154433376256
2019/03/21 15:32:09 Tweet text: Create ingress routing session by Deepak Kumar. The live video stream is up at: https://t.co/FkwgOxiuKE #kubernetes… https://t.co/h72yqOiwij | Tweet Date: Sat Mar 16 12:54:59 +0000 2019 | Tweet ID: 1106901676575911937
2019/03/21 15:32:09 Tweet text: Deploying your containers on kubernetes by @hrishike8. #kubernetes https://t.co/JgLaNGVgRu | Tweet Date: Sat Mar 16 12:22:02 +0000 2019 | Tweet ID: 1106893383954501632
2019/03/21 15:32:09 Tweet text: Huge turnout at today's meetup it's on 🔥🔥 https://t.co/YYbMBoumWw | Tweet Date: Sat Mar 16 09:19:40 +0000 2019 | Tweet ID: 1106847490299576320
2019/03/21 15:32:09 Tweet text: .@pmishra1598 kick started the Meetup by explaining what #Kubernetes is! Currently clarifying what a pod is. https://t.co/Ny7bN9c62x | Tweet Date: Sat Mar 16 09:02:00 +0000 2019 | Tweet ID: 1106843045570453507
2019/03/21 15:32:09 Tweet text: We go online in sometime here https://t.co/FkwgOx0Tm4 | Tweet Date: Sat Mar 16 08:36:23 +0000 2019 | Tweet ID: 1106836598987997184
2019/03/21 15:32:09 
+++
author = "Suraj Deshmukh"
title = "Kubernetes Bangalore MONTH YEAR Event Report"          # CHANGE ME
description = "Event Report for Kubernetes Bangalore Meetup"
date = "2019-MM-DDT01:00:51+05:30"                              # CHANGE ME
categories = ["event_report"]
tags = ["kubernetes", "meetup"]
+++

The Kubernetes Bangalore Meetup was organized at ADD LOCATION on ADD DATE. The agenda for the meetup was following:

ADD AGENDA

The moments from Meetup:

{{< tweet 1106836598987997184 >}}
{{< tweet 1106843045570453507 >}}
{{< tweet 1106847490299576320 >}}
{{< tweet 1106893383954501632 >}}
{{< tweet 1106901676575911937 >}}
{{< tweet 1107299154433376256 >}}

Take a flag that will generate a file at the given location.

surajssd commented 5 years ago

The filename should be autogenerated based on the date of the event. It could of the format:

k8s-blr-event-report-yyyy-mm-dd.md