lib/pt-flow/ui.rb in pt-flow-1.1.1 vs lib/pt-flow/ui.rb in pt-flow-2.0.0

- old
+ new

@@ -4,13 +4,15 @@ def initialize(command, args = []) super [command] + (args) end def start - if @params[0] + if @params[0] && !@params[0].start_with?('--') task = create else - table = TasksTable.new(@client.get_work(@project)) + filter = 'unstarted,started' + filter += ',unscheduled' if @params.include?('--include-icebox') + table = TasksTable.new(@project.stories.all(:current_state => filter)) title("Available tasks in #{project_to_s}") task = select("Please select a task to start working on", table) end estimate_task(task, ask("How many points do you estimate for it? (#{@project.point_scale})")) if task.estimate && task.estimate < 0 assign_task(task, @local_config[:user_name])