Skip to content

Commit

Permalink
Added --plot-to-board to plot command
Browse files Browse the repository at this point in the history
This flag of plot command will send the plotted burndown chart to the first
card of the `Done` column.

close openSUSE#134
  • Loading branch information
Ronaq13 committed Feb 26, 2018
1 parent 4f2df04 commit f3ee30f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/burndown_chart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def process_options(hash)
cli_switches << '--no-tasks' if hash['no-tasks']
cli_switches << '--with-fast-lane' if hash['with-fast-lane']
cli_switches << "--output #{hash['output']}" if hash['output']
cli_switches << '--plot-to-board' if hash['plot-to-board']
cli_switches << '--verbose' if hash['verbose']
end
end
Expand Down
1 change: 1 addition & 0 deletions lib/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def burndown
option :output, aliases: :o, desc: 'Output directory', required: false
option 'with-fast-lane', desc: 'Plot Fast Lane with new cards bars', required: false, type: :boolean
option 'no-tasks', desc: 'Do not plot tasks line', required: false, type: :boolean
option 'plot-to-board', desc: 'Send the plotted chart to the first card of the Done column', required: false
def plot(sprint_number)
process_global_options options
BurndownChart.plot(sprint_number, options)
Expand Down
1 change: 1 addition & 0 deletions scripts/create_burndown.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def parseCommandLine():
parser.add_argument('--with-fast-lane', action='store_true', help='Draw line for Fast Lane cards', default=False)
parser.add_argument('--verbose', action='store_true', help='Verbose Output', default=False)
parser.add_argument('--no-head', action='store_true', help='Run in headless mode', default=False)
parser.add_argument('--plot-to-board', help='Send the plotted chart to first card of Done column')
args = parser.parse_args()

if args.output:
Expand Down

0 comments on commit f3ee30f

Please sign in to comment.