capistrano-data_plane_api 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +5 -2
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +6 -0
  5. data/Gemfile +7 -4
  6. data/Gemfile.lock +108 -69
  7. data/README.md +5 -0
  8. data/capistrano-data_plane_api.gemspec +5 -2
  9. data/exe/cap_data_plane_api +3 -2
  10. data/lib/capistrano/data_plane_api/configuration/backend.rb +2 -0
  11. data/lib/capistrano/data_plane_api/configuration/server.rb +4 -2
  12. data/lib/capistrano/data_plane_api/configuration/symbol.rb +2 -0
  13. data/lib/capistrano/data_plane_api/configuration.rb +3 -3
  14. data/lib/capistrano/data_plane_api/deploy/args.rb +71 -40
  15. data/lib/capistrano/data_plane_api/deploy/deployment_stats.rb +29 -25
  16. data/lib/capistrano/data_plane_api/deploy/group.rb +33 -24
  17. data/lib/capistrano/data_plane_api/deploy/helper.rb +3 -5
  18. data/lib/capistrano/data_plane_api/deploy/server_stats.rb +60 -43
  19. data/lib/capistrano/data_plane_api/deploy.rb +3 -2
  20. data/lib/capistrano/data_plane_api/diggable.rb +5 -2
  21. data/lib/capistrano/data_plane_api/equatable.rb +4 -2
  22. data/lib/capistrano/data_plane_api/helper.rb +31 -27
  23. data/lib/capistrano/data_plane_api/hooks.rb +1 -0
  24. data/lib/capistrano/data_plane_api/show_state.rb +15 -12
  25. data/lib/capistrano/data_plane_api/tasks.rb +26 -2
  26. data/lib/capistrano/data_plane_api/terminal_print_loop.rb +7 -4
  27. data/lib/capistrano/data_plane_api/type.rb +9 -5
  28. data/lib/capistrano/data_plane_api/version.rb +2 -2
  29. data/lib/capistrano/data_plane_api.rb +96 -74
  30. data/lib/capistrano-data_plane_api.rb +4 -0
  31. data/rbi/capistrano-data_plane_api.rbi +283 -0
  32. data/sorbet/config +6 -0
  33. data/sorbet/rbi/annotations/.gitattributes +1 -0
  34. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  35. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  36. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  37. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  38. data/sorbet/rbi/dsl/.gitattributes +1 -0
  39. data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration/backend.rbi +50 -0
  40. data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration/server.rbi +24 -0
  41. data/sorbet/rbi/dsl/capistrano/data_plane_api/configuration.rbi +52 -0
  42. data/sorbet/rbi/dsl/capistrano/data_plane_api/type.rbi +12 -0
  43. data/sorbet/rbi/gems/.gitattributes +1 -0
  44. data/sorbet/rbi/gems/addressable@2.8.7.rbi +1994 -0
  45. data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
  46. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  47. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +8 -0
  48. data/sorbet/rbi/gems/booleans@0.1.3.rbi +28 -0
  49. data/sorbet/rbi/gems/byebug@12.0.0.rbi +37 -0
  50. data/sorbet/rbi/gems/crack@1.0.0.rbi +145 -0
  51. data/sorbet/rbi/gems/data_plane_api@0.2.0.rbi +238 -0
  52. data/sorbet/rbi/gems/faraday-net_http@3.4.0.rbi +147 -0
  53. data/sorbet/rbi/gems/faraday@2.13.0.rbi +2974 -0
  54. data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +353 -0
  55. data/sorbet/rbi/gems/json@2.10.2.rbi +2113 -0
  56. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  57. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  58. data/sorbet/rbi/gems/minitest@5.25.5.rbi +1547 -0
  59. data/sorbet/rbi/gems/net-http@0.6.0.rbi +4247 -0
  60. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  61. data/sorbet/rbi/gems/pastel@0.8.0.rbi +733 -0
  62. data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +936 -0
  63. data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
  64. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +404 -0
  65. data/sorbet/rbi/gems/rake@13.0.6.rbi +3030 -0
  66. data/sorbet/rbi/gems/rexml@3.4.1.rbi +5346 -0
  67. data/sorbet/rbi/gems/rubocop-espago@1.1.8.rbi +9 -0
  68. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  69. data/sorbet/rbi/gems/shale-builder@0.2.4.rbi +9 -0
  70. data/sorbet/rbi/gems/shale@1.2.2.rbi +2323 -0
  71. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +563 -0
  72. data/sorbet/rbi/gems/strings-ansi@0.2.0.rbi +178 -0
  73. data/sorbet/rbi/gems/strings@0.2.1.rbi +830 -0
  74. data/sorbet/rbi/gems/thor@1.2.1.rbi +3957 -0
  75. data/sorbet/rbi/gems/tty-box@0.7.0.rbi +593 -0
  76. data/sorbet/rbi/gems/tty-color@0.6.0.rbi +241 -0
  77. data/sorbet/rbi/gems/tty-cursor@0.7.1.rbi +443 -0
  78. data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +66 -0
  79. data/sorbet/rbi/gems/unicode_utils@1.4.0.rbi +184 -0
  80. data/sorbet/rbi/gems/uri@1.0.3.rbi +2349 -0
  81. data/sorbet/rbi/gems/vcr@6.3.1.rbi +3040 -0
  82. data/sorbet/rbi/gems/webmock@3.25.1.rbi +1792 -0
  83. data/sorbet/rbi/shims/gems/faraday.rbi +21 -0
  84. data/sorbet/rbi/shims/gems/shoulda-context@2.0.0.rbi +15 -0
  85. data/sorbet/rbi/todo.rbi +7 -0
  86. data/sorbet/tapioca/config.yml +28 -0
  87. data/sorbet/tapioca/extensions/load_gem.rb +1 -0
  88. data/sorbet/tapioca/require.rb +4 -0
  89. data/templates/bin/deploy.rb +1 -0
  90. metadata +106 -8
@@ -0,0 +1,241 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `tty-color` gem.
5
+ # Please instead update this file by running `bin/tapioca gem tty-color`.
6
+
7
+
8
+ # source://tty-color//lib/tty/color/mode.rb#3
9
+ module TTY; end
10
+
11
+ # Responsible for checking terminal color support
12
+ #
13
+ # @api public
14
+ #
15
+ # source://tty-color//lib/tty/color/mode.rb#4
16
+ module TTY::Color
17
+ extend ::TTY::Color
18
+
19
+ # Check if terminal supports colors
20
+ #
21
+ # @api public
22
+ # @return [Boolean]
23
+ #
24
+ # source://tty-color//lib/tty/color.rb#27
25
+ def color?; end
26
+
27
+ # Check if command can be run
28
+ #
29
+ # @api public
30
+ # @return [Boolean]
31
+ #
32
+ # source://tty-color//lib/tty/color.rb#67
33
+ def command?(cmd); end
34
+
35
+ # Detect if color support has been disabled with NO_COLOR ENV var.
36
+ #
37
+ # @api public
38
+ # @return [Boolean] true when terminal color support has been disabled, false otherwise
39
+ #
40
+ # source://tty-color//lib/tty/color.rb#40
41
+ def disabled?; end
42
+
43
+ # Check how many colors this terminal supports
44
+ #
45
+ # @api public
46
+ # @return [Integer]
47
+ #
48
+ # source://tty-color//lib/tty/color.rb#49
49
+ def mode; end
50
+
51
+ # @api public
52
+ #
53
+ # source://tty-color//lib/tty/color.rb#20
54
+ def output; end
55
+
56
+ # @api public
57
+ #
58
+ # source://tty-color//lib/tty/color.rb#20
59
+ def output=(_arg0); end
60
+
61
+ # Check if terminal supports colors
62
+ #
63
+ # @api public
64
+ # @return [Boolean]
65
+ #
66
+ # source://tty-color//lib/tty/color.rb#27
67
+ def support?; end
68
+
69
+ # Check if terminal supports colors
70
+ #
71
+ # @api public
72
+ # @return [Boolean]
73
+ #
74
+ # source://tty-color//lib/tty/color.rb#27
75
+ def supports?; end
76
+
77
+ # Check if terminal supports colors
78
+ #
79
+ # @api public
80
+ # @return [Boolean]
81
+ #
82
+ # source://tty-color//lib/tty/color.rb#27
83
+ def supports_color?; end
84
+
85
+ # Check if output is linked with terminal
86
+ #
87
+ # @api public
88
+ # @return [Boolean]
89
+ #
90
+ # source://tty-color//lib/tty/color.rb#58
91
+ def tty?; end
92
+
93
+ # @api public
94
+ #
95
+ # source://tty-color//lib/tty/color.rb#20
96
+ def verbose; end
97
+
98
+ # @api public
99
+ #
100
+ # source://tty-color//lib/tty/color.rb#20
101
+ def verbose=(_arg0); end
102
+
103
+ # Check if Windowz
104
+ #
105
+ # @api public
106
+ # @return [Boolean]
107
+ #
108
+ # source://tty-color//lib/tty/color.rb#76
109
+ def windows?; end
110
+ end
111
+
112
+ # source://tty-color//lib/tty/color/mode.rb#5
113
+ class TTY::Color::Mode
114
+ # @return [Mode] a new instance of Mode
115
+ #
116
+ # source://tty-color//lib/tty/color/mode.rb#31
117
+ def initialize(env); end
118
+
119
+ # Check TERM environment for colors
120
+ #
121
+ # @api private
122
+ # @return [NoValue, Integer]
123
+ #
124
+ # source://tty-color//lib/tty/color/mode.rb#57
125
+ def from_term; end
126
+
127
+ # Shell out to tput to check color support
128
+ #
129
+ # @api private
130
+ # @return [NoValue, Integer]
131
+ #
132
+ # source://tty-color//lib/tty/color/mode.rb#77
133
+ def from_tput; end
134
+
135
+ # Detect supported colors
136
+ #
137
+ # @api public
138
+ # @return [Integer] out of 0, 8, 16, 52, 66, 256, 2^24
139
+ #
140
+ # source://tty-color//lib/tty/color/mode.rb#41
141
+ def mode; end
142
+ end
143
+
144
+ # source://tty-color//lib/tty/color/mode.rb#29
145
+ TTY::Color::Mode::METHODS = T.let(T.unsafe(nil), Array)
146
+
147
+ # source://tty-color//lib/tty/color/mode.rb#18
148
+ TTY::Color::Mode::TERM_16 = T.let(T.unsafe(nil), Regexp)
149
+
150
+ # source://tty-color//lib/tty/color/mode.rb#6
151
+ TTY::Color::Mode::TERM_24BIT = T.let(T.unsafe(nil), Regexp)
152
+
153
+ # source://tty-color//lib/tty/color/mode.rb#9
154
+ TTY::Color::Mode::TERM_256 = T.let(T.unsafe(nil), Regexp)
155
+
156
+ # source://tty-color//lib/tty/color/mode.rb#16
157
+ TTY::Color::Mode::TERM_52 = T.let(T.unsafe(nil), Regexp)
158
+
159
+ # source://tty-color//lib/tty/color/mode.rb#13
160
+ TTY::Color::Mode::TERM_64 = T.let(T.unsafe(nil), Regexp)
161
+
162
+ # source://tty-color//lib/tty/color/mode.rb#27
163
+ TTY::Color::Mode::TERM_8 = T.let(T.unsafe(nil), Regexp)
164
+
165
+ # 8 bits per RGB channel
166
+ #
167
+ # source://tty-color//lib/tty/color/mode.rb#7
168
+ TTY::Color::Mode::TRUECOLORS = T.let(T.unsafe(nil), Integer)
169
+
170
+ # @api public
171
+ #
172
+ # source://tty-color//lib/tty/color.rb#14
173
+ module TTY::Color::NoValue; end
174
+
175
+ # source://tty-color//lib/tty/color/support.rb#5
176
+ class TTY::Color::Support
177
+ # Initialize a color support
178
+ #
179
+ # @api public
180
+ # @return [Support] a new instance of Support
181
+ #
182
+ # source://tty-color//lib/tty/color/support.rb#30
183
+ def initialize(env, verbose: T.unsafe(nil)); end
184
+
185
+ # Detect if color support has been disabled with NO_COLOR ENV var.
186
+ #
187
+ # @api public
188
+ # @return [Boolean] true when terminal color support has been disabled, false otherwise
189
+ #
190
+ # source://tty-color//lib/tty/color/support.rb#58
191
+ def disabled?; end
192
+
193
+ # Attempt to load curses to check color support
194
+ #
195
+ # @api private
196
+ # @return [Boolean]
197
+ #
198
+ # source://tty-color//lib/tty/color/support.rb#97
199
+ def from_curses(curses_class = T.unsafe(nil)); end
200
+
201
+ # Check if environment specifies color variables
202
+ #
203
+ # @api private
204
+ #
205
+ # source://tty-color//lib/tty/color/support.rb#88
206
+ def from_env; end
207
+
208
+ # Inspect environment $TERM variable for color support
209
+ #
210
+ # @api private
211
+ #
212
+ # source://tty-color//lib/tty/color/support.rb#66
213
+ def from_term; end
214
+
215
+ # Shell out to tput to check color support
216
+ #
217
+ # @api private
218
+ #
219
+ # source://tty-color//lib/tty/color/support.rb#77
220
+ def from_tput; end
221
+
222
+ # Detect if terminal supports color
223
+ #
224
+ # @api public
225
+ # @return [Boolean] true when terminal supports color, false otherwise
226
+ #
227
+ # source://tty-color//lib/tty/color/support.rb#41
228
+ def support?; end
229
+ end
230
+
231
+ # source://tty-color//lib/tty/color/support.rb#7
232
+ TTY::Color::Support::ENV_VARS = T.let(T.unsafe(nil), Array)
233
+
234
+ # source://tty-color//lib/tty/color/support.rb#6
235
+ TTY::Color::Support::SOURCES = T.let(T.unsafe(nil), Array)
236
+
237
+ # source://tty-color//lib/tty/color/support.rb#9
238
+ TTY::Color::Support::TERM_REGEX = T.let(T.unsafe(nil), Regexp)
239
+
240
+ # source://tty-color//lib/tty/color/version.rb#5
241
+ TTY::Color::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,443 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `tty-cursor` gem.
5
+ # Please instead update this file by running `bin/tapioca gem tty-cursor`.
6
+
7
+
8
+ # source://tty-cursor//lib/tty/cursor/version.rb#3
9
+ module TTY; end
10
+
11
+ # Terminal cursor movement ANSI codes
12
+ #
13
+ # source://tty-cursor//lib/tty/cursor/version.rb#4
14
+ module TTY::Cursor
15
+ private
16
+
17
+ # Move the cursor backward by n
18
+ #
19
+ # @api public
20
+ # @param n [Integer]
21
+ #
22
+ # source://tty-cursor//lib/tty/cursor.rb#94
23
+ def backward(n = T.unsafe(nil)); end
24
+
25
+ # Erase n characters from the current cursor position
26
+ #
27
+ # @api public
28
+ #
29
+ # source://tty-cursor//lib/tty/cursor.rb#137
30
+ def clear_char(n = T.unsafe(nil)); end
31
+
32
+ # Erase the entire current line and return to beginning of the line
33
+ #
34
+ # @api public
35
+ #
36
+ # source://tty-cursor//lib/tty/cursor.rb#143
37
+ def clear_line; end
38
+
39
+ # Erase from the current position (inclusive) to
40
+ # the end of the line
41
+ #
42
+ # @api public
43
+ #
44
+ # source://tty-cursor//lib/tty/cursor.rb#157
45
+ def clear_line_after; end
46
+
47
+ # Erase from the beginning of the line up to and including
48
+ # the current cursor position.
49
+ #
50
+ # @api public
51
+ #
52
+ # source://tty-cursor//lib/tty/cursor.rb#150
53
+ def clear_line_before; end
54
+
55
+ # Clear a number of lines
56
+ #
57
+ # @api public
58
+ # @param n [Integer] the number of lines to clear
59
+ # @param :direction [Symbol] the direction to clear, default :up
60
+ #
61
+ # source://tty-cursor//lib/tty/cursor.rb#169
62
+ def clear_lines(n, direction = T.unsafe(nil)); end
63
+
64
+ # source://tty-cursor//lib/tty/cursor.rb#169
65
+ def clear_rows(n, direction = T.unsafe(nil)); end
66
+
67
+ # Clear the screen with the background colour and moves the cursor to home
68
+ #
69
+ # @api public
70
+ #
71
+ # source://tty-cursor//lib/tty/cursor.rb#191
72
+ def clear_screen; end
73
+
74
+ # Clear screen down from current position
75
+ #
76
+ # @api public
77
+ #
78
+ # source://tty-cursor//lib/tty/cursor.rb#179
79
+ def clear_screen_down; end
80
+
81
+ # Clear screen up from current position
82
+ #
83
+ # @api public
84
+ #
85
+ # source://tty-cursor//lib/tty/cursor.rb#185
86
+ def clear_screen_up; end
87
+
88
+ # Cursor moves to nth position horizontally in the current line
89
+ #
90
+ # @api public
91
+ # @param n [Integer] the nth aboslute position in line
92
+ #
93
+ # source://tty-cursor//lib/tty/cursor.rb#111
94
+ def column(n = T.unsafe(nil)); end
95
+
96
+ # Query cursor current position
97
+ #
98
+ # @api public
99
+ #
100
+ # source://tty-cursor//lib/tty/cursor.rb#51
101
+ def current; end
102
+
103
+ # source://tty-cursor//lib/tty/cursor.rb#94
104
+ def cursor_backward(n = T.unsafe(nil)); end
105
+
106
+ # source://tty-cursor//lib/tty/cursor.rb#86
107
+ def cursor_down(n = T.unsafe(nil)); end
108
+
109
+ # source://tty-cursor//lib/tty/cursor.rb#102
110
+ def cursor_forward(n = T.unsafe(nil)); end
111
+
112
+ # source://tty-cursor//lib/tty/cursor.rb#78
113
+ def cursor_up(n = T.unsafe(nil)); end
114
+
115
+ # Move the cursor down by n
116
+ #
117
+ # @api public
118
+ # @param n [Integer]
119
+ #
120
+ # source://tty-cursor//lib/tty/cursor.rb#86
121
+ def down(n = T.unsafe(nil)); end
122
+
123
+ # Move the cursor forward by n
124
+ #
125
+ # @api public
126
+ # @param n [Integer]
127
+ #
128
+ # source://tty-cursor//lib/tty/cursor.rb#102
129
+ def forward(n = T.unsafe(nil)); end
130
+
131
+ # Hide cursor
132
+ #
133
+ # @api public
134
+ #
135
+ # source://tty-cursor//lib/tty/cursor.rb#24
136
+ def hide; end
137
+
138
+ # Switch off cursor for the block
139
+ #
140
+ # @api public
141
+ #
142
+ # source://tty-cursor//lib/tty/cursor.rb#30
143
+ def invisible(stream = T.unsafe(nil)); end
144
+
145
+ # Move cursor relative to its current position
146
+ #
147
+ # @api public
148
+ # @param x [Integer]
149
+ # @param y [Integer]
150
+ #
151
+ # source://tty-cursor//lib/tty/cursor.rb#70
152
+ def move(x, y); end
153
+
154
+ # Set the cursor absolute position
155
+ #
156
+ # @api public
157
+ # @param row [Integer]
158
+ # @param column [Integer]
159
+ #
160
+ # source://tty-cursor//lib/tty/cursor.rb#59
161
+ def move_to(row = T.unsafe(nil), column = T.unsafe(nil)); end
162
+
163
+ # Move cursor down to beginning of next line
164
+ #
165
+ # @api public
166
+ #
167
+ # source://tty-cursor//lib/tty/cursor.rb#125
168
+ def next_line; end
169
+
170
+ # Move cursor up to beginning of previous line
171
+ #
172
+ # @api public
173
+ #
174
+ # source://tty-cursor//lib/tty/cursor.rb#131
175
+ def prev_line; end
176
+
177
+ # Restore cursor position
178
+ #
179
+ # @api public
180
+ #
181
+ # source://tty-cursor//lib/tty/cursor.rb#45
182
+ def restore; end
183
+
184
+ # Cursor moves to the nth position vertically in the current column
185
+ #
186
+ # @api public
187
+ # @param n [Integer] the nth absolute position in column
188
+ #
189
+ # source://tty-cursor//lib/tty/cursor.rb#119
190
+ def row(n = T.unsafe(nil)); end
191
+
192
+ # Save current position
193
+ #
194
+ # @api public
195
+ #
196
+ # source://tty-cursor//lib/tty/cursor.rb#39
197
+ def save; end
198
+
199
+ # Scroll display down one line
200
+ #
201
+ # @api public
202
+ #
203
+ # source://tty-cursor//lib/tty/cursor.rb#203
204
+ def scroll_down; end
205
+
206
+ # Scroll display up one line
207
+ #
208
+ # @api public
209
+ #
210
+ # source://tty-cursor//lib/tty/cursor.rb#197
211
+ def scroll_up; end
212
+
213
+ # Make cursor visible
214
+ #
215
+ # @api public
216
+ #
217
+ # source://tty-cursor//lib/tty/cursor.rb#18
218
+ def show; end
219
+
220
+ # Move cursor up by n
221
+ #
222
+ # @api public
223
+ # @param n [Integer]
224
+ #
225
+ # source://tty-cursor//lib/tty/cursor.rb#78
226
+ def up(n = T.unsafe(nil)); end
227
+
228
+ class << self
229
+ # Move the cursor backward by n
230
+ #
231
+ # @api public
232
+ # @param n [Integer]
233
+ #
234
+ # source://tty-cursor//lib/tty/cursor.rb#94
235
+ def backward(n = T.unsafe(nil)); end
236
+
237
+ # Erase n characters from the current cursor position
238
+ #
239
+ # @api public
240
+ #
241
+ # source://tty-cursor//lib/tty/cursor.rb#137
242
+ def clear_char(n = T.unsafe(nil)); end
243
+
244
+ # Erase the entire current line and return to beginning of the line
245
+ #
246
+ # @api public
247
+ #
248
+ # source://tty-cursor//lib/tty/cursor.rb#143
249
+ def clear_line; end
250
+
251
+ # Erase from the current position (inclusive) to
252
+ # the end of the line
253
+ #
254
+ # @api public
255
+ #
256
+ # source://tty-cursor//lib/tty/cursor.rb#157
257
+ def clear_line_after; end
258
+
259
+ # Erase from the beginning of the line up to and including
260
+ # the current cursor position.
261
+ #
262
+ # @api public
263
+ #
264
+ # source://tty-cursor//lib/tty/cursor.rb#150
265
+ def clear_line_before; end
266
+
267
+ # Clear a number of lines
268
+ #
269
+ # @api public
270
+ # @param n [Integer] the number of lines to clear
271
+ # @param :direction [Symbol] the direction to clear, default :up
272
+ #
273
+ # source://tty-cursor//lib/tty/cursor.rb#169
274
+ def clear_lines(n, direction = T.unsafe(nil)); end
275
+
276
+ # Clear the screen with the background colour and moves the cursor to home
277
+ #
278
+ # @api public
279
+ #
280
+ # source://tty-cursor//lib/tty/cursor.rb#191
281
+ def clear_screen; end
282
+
283
+ # Clear screen down from current position
284
+ #
285
+ # @api public
286
+ #
287
+ # source://tty-cursor//lib/tty/cursor.rb#179
288
+ def clear_screen_down; end
289
+
290
+ # Clear screen up from current position
291
+ #
292
+ # @api public
293
+ #
294
+ # source://tty-cursor//lib/tty/cursor.rb#185
295
+ def clear_screen_up; end
296
+
297
+ # Cursor moves to nth position horizontally in the current line
298
+ #
299
+ # @api public
300
+ # @param n [Integer] the nth aboslute position in line
301
+ #
302
+ # source://tty-cursor//lib/tty/cursor.rb#111
303
+ def column(n = T.unsafe(nil)); end
304
+
305
+ # Query cursor current position
306
+ #
307
+ # @api public
308
+ #
309
+ # source://tty-cursor//lib/tty/cursor.rb#51
310
+ def current; end
311
+
312
+ # Move the cursor down by n
313
+ #
314
+ # @api public
315
+ # @param n [Integer]
316
+ #
317
+ # source://tty-cursor//lib/tty/cursor.rb#86
318
+ def down(n = T.unsafe(nil)); end
319
+
320
+ # Move the cursor forward by n
321
+ #
322
+ # @api public
323
+ # @param n [Integer]
324
+ #
325
+ # source://tty-cursor//lib/tty/cursor.rb#102
326
+ def forward(n = T.unsafe(nil)); end
327
+
328
+ # Hide cursor
329
+ #
330
+ # @api public
331
+ #
332
+ # source://tty-cursor//lib/tty/cursor.rb#24
333
+ def hide; end
334
+
335
+ # Switch off cursor for the block
336
+ #
337
+ # @api public
338
+ #
339
+ # source://tty-cursor//lib/tty/cursor.rb#30
340
+ def invisible(stream = T.unsafe(nil)); end
341
+
342
+ # Move cursor relative to its current position
343
+ #
344
+ # @api public
345
+ # @param x [Integer]
346
+ # @param y [Integer]
347
+ #
348
+ # source://tty-cursor//lib/tty/cursor.rb#70
349
+ def move(x, y); end
350
+
351
+ # Set the cursor absolute position
352
+ #
353
+ # @api public
354
+ # @param row [Integer]
355
+ # @param column [Integer]
356
+ #
357
+ # source://tty-cursor//lib/tty/cursor.rb#59
358
+ def move_to(row = T.unsafe(nil), column = T.unsafe(nil)); end
359
+
360
+ # Move cursor down to beginning of next line
361
+ #
362
+ # @api public
363
+ #
364
+ # source://tty-cursor//lib/tty/cursor.rb#125
365
+ def next_line; end
366
+
367
+ # Move cursor up to beginning of previous line
368
+ #
369
+ # @api public
370
+ #
371
+ # source://tty-cursor//lib/tty/cursor.rb#131
372
+ def prev_line; end
373
+
374
+ # Restore cursor position
375
+ #
376
+ # @api public
377
+ #
378
+ # source://tty-cursor//lib/tty/cursor.rb#45
379
+ def restore; end
380
+
381
+ # Cursor moves to the nth position vertically in the current column
382
+ #
383
+ # @api public
384
+ # @param n [Integer] the nth absolute position in column
385
+ #
386
+ # source://tty-cursor//lib/tty/cursor.rb#119
387
+ def row(n = T.unsafe(nil)); end
388
+
389
+ # Save current position
390
+ #
391
+ # @api public
392
+ #
393
+ # source://tty-cursor//lib/tty/cursor.rb#39
394
+ def save; end
395
+
396
+ # Scroll display down one line
397
+ #
398
+ # @api public
399
+ #
400
+ # source://tty-cursor//lib/tty/cursor.rb#203
401
+ def scroll_down; end
402
+
403
+ # Scroll display up one line
404
+ #
405
+ # @api public
406
+ #
407
+ # source://tty-cursor//lib/tty/cursor.rb#197
408
+ def scroll_up; end
409
+
410
+ # Make cursor visible
411
+ #
412
+ # @api public
413
+ #
414
+ # source://tty-cursor//lib/tty/cursor.rb#18
415
+ def show; end
416
+
417
+ # Move cursor up by n
418
+ #
419
+ # @api public
420
+ # @param n [Integer]
421
+ #
422
+ # source://tty-cursor//lib/tty/cursor.rb#78
423
+ def up(n = T.unsafe(nil)); end
424
+ end
425
+ end
426
+
427
+ # source://tty-cursor//lib/tty/cursor.rb#11
428
+ TTY::Cursor::CSI = T.let(T.unsafe(nil), String)
429
+
430
+ # source://tty-cursor//lib/tty/cursor.rb#12
431
+ TTY::Cursor::DEC_RST = T.let(T.unsafe(nil), String)
432
+
433
+ # source://tty-cursor//lib/tty/cursor.rb#13
434
+ TTY::Cursor::DEC_SET = T.let(T.unsafe(nil), String)
435
+
436
+ # source://tty-cursor//lib/tty/cursor.rb#14
437
+ TTY::Cursor::DEC_TCEM = T.let(T.unsafe(nil), String)
438
+
439
+ # source://tty-cursor//lib/tty/cursor.rb#10
440
+ TTY::Cursor::ESC = T.let(T.unsafe(nil), String)
441
+
442
+ # source://tty-cursor//lib/tty/cursor/version.rb#5
443
+ TTY::Cursor::VERSION = T.let(T.unsafe(nil), String)