blob: 95672325652e7c91f81807466639672dba4aebab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# frozen_string_literal: true
require_relative './helpers/cli_inputs'
require_relative './helpers/files'
require_relative './helpers/formatting'
require_relative './helpers/group_ownership'
require_relative './helpers/event_options'
require_relative './helpers/metric_options'
module InternalEventsCli
module Helpers
include CliInputs
include Files
include Formatting
include GroupOwnership
include EventOptions
include MetricOptions
MILESTONE = File.read('VERSION').strip.match(/(\d+\.\d+)/).captures.first
def new_page!(page = nil, total = nil, steps = [])
cli.say TTY::Cursor.clear_screen
cli.say TTY::Cursor.move_to(0, 0)
cli.say "#{progress_bar(page, total, steps)}\n" if page && total
end
end
end
|