Method: PTT::UI#start
- Defined in:
- lib/ptt/ui.rb
#start ⇒ Object
223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/ptt/ui.rb', line 223 def start if @params[0] task = task_by_id_or_pt_id @params[0].to_i title("Starting '#{task.name}'") else tasks = @client.get_my_tasks_to_start(@project, @local_config[:user_name]) table = PTT::TasksTable.new(tasks) title("Tasks for #{user_s} in #{project_to_s}") task = select("Please select a story to mark it as started", table) end start_task task end |