# File lib/fastcst/command/log.rb, line 24
24:         def run
25:             repo = Repository.new @repo_dir
26:             
27:             # check that a revision is in progress
28:             if not repo['Current Revision']
29:                 UI.failure :constraint, "You have not used begin to start a revision yet."
30:                 return
31:             end
32: 
33:             
34:             md_file = File.join(repo.work_dir, "meta-data.yaml")
35:             
36:             if @show
37:                 # they want to see the current log
38:                 md = MetaData.load_metadata(md_file)
39:                 journal = md['Journal']
40:                 
41:                 journal.each do |log|
42:                     print "[#{log['Date']}] :  #{log['Message']}\n"
43:                 end
44:             else
45:                 MetaData.log_message(md_file, @message)
46:             end
47:         end