class Taskmeister::Cli::Commands::Command

Public Class Methods

new(task_list, options=OpenStruct.new, stdout=STDOUT, kernel=Kernel) click to toggle source
# File lib/taskmeister/cli/commands.rb, line 8
def initialize(task_list, options=OpenStruct.new, stdout=STDOUT, kernel=Kernel)
  @task_list = task_list
  @options = options
  @stdout = stdout
  @kernel = kernel
end

Public Instance Methods

execute!() click to toggle source
# File lib/taskmeister/cli/commands.rb, line 15
def execute!
  # Override this in derived class
end

Protected Instance Methods

write() click to toggle source
# File lib/taskmeister/cli/commands.rb, line 21
def write
  Taskmeister::TaskListWriter.to_markdown_file(@task_list)
end