lib/assets/new/clerq.thor.tt in clerq-0.3.0 vs lib/assets/new/clerq.thor.tt in clerq-0.3.1
- old
+ new
@@ -4,10 +4,39 @@
class <%=config[:klass]%> < Thor
include Thor::Actions
desc "stat", "Print statistic"
def stat
- nodes = Clerq::Interactors::JoinNodes.()
+ nodes = Clerq.assemble
say "#{nodes.to_a.drop(1).size} nodes total"
end
+
+ desc "mm", "Create meeting minutes"
+ def mm
+ minutes = "meeting minutes #{Time.new.strftime('%Y-%m-%d')}.md"
+ content = "% #{minutes.capitalize}\n\n" + MINUTES_TEMPLATE
+ Dir.mkdir('mm') unless Dir.exist?('mm')
+ File.write("mm/#{minutes}", content)
+ say "'mm/#{minutes}' created!"
+ end
+
+ MINUTES_TEMPLATE = <<~EOF
+ # Attendants
+
+ 1.
+ 2.
+ 3.
+
+ # Questions
+
+ 1.
+ 2.
+ 3.
+
+ # Resolutions
+
+ 1.
+ 2.
+ 3.
+ EOF
end