tty 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +7 -7
- data/lib/tty/version.rb +1 -1
- data/tty.gemspec +34 -33
- metadata +52 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e0fcdea50a69adf1844c98949be8772715f36f9415ee9900b749d218d8fecf0
|
4
|
+
data.tar.gz: 22de0ab14404e3f8b23588e235527dbf07063401d587cec89ce2ac8a230c5828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4413ceb7cdec0a69ca702ae665312e82ad4c7eb61119e00515d29dd83f5e2c0558dfbb6d603c7a1c3ec6b0b73510e74843f0766776d48759ab4654535a82cdc7
|
7
|
+
data.tar.gz: 3ce98b8ae493dad3dc1c98ef236f389d71dae3a66042dbe32fe32109e7e3affdbcfa8aed4dd9232fbd27e696975d052f9d97630ff65295b1b7d8688565490bb6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -75,7 +75,7 @@ Or install it yourself as:
|
|
75
75
|
|
76
76
|
## 1. Overview
|
77
77
|
|
78
|
-
**TTY** provides you with commands and many components to get you onto the path of
|
78
|
+
**TTY** provides you with commands and many components to get you onto the path of building awesome terminal applications in next to no time.
|
79
79
|
|
80
80
|
To simply jump start a new command line application use `teletype` executable:
|
81
81
|
|
@@ -200,7 +200,7 @@ $ teletype new app --license bsd3
|
|
200
200
|
|
201
201
|
#### 2.1.4 `--test`, `-t` flag
|
202
202
|
|
203
|
-
The `teletype` comes configured to work with `rspec` and `minitest` frameworks which are the only two
|
203
|
+
The `teletype` comes configured to work with `rspec` and `minitest` frameworks which are the only two acceptable values. The `GEM_NAME.gemspec` will be configured and appropriate testing directory setup. By default the `RSpec` framework is used.
|
204
204
|
|
205
205
|
```ruby
|
206
206
|
$ teletype new app --test=minitest
|
@@ -250,7 +250,7 @@ $ teletype add add-config-command # => incorrect
|
|
250
250
|
|
251
251
|
#### 2.2.1 `--args` flag
|
252
252
|
|
253
|
-
You can specify that `teletype` should add a command with a variable number of arguments using the `--args` flag. The `--args` flag accepts space delimited variable names. To specify required argument use a string name, for an optional argument pass `name = nil` enclosed in quote marks and any variable number of arguments needs to be
|
253
|
+
You can specify that `teletype` should add a command with a variable number of arguments using the `--args` flag. The `--args` flag accepts space delimited variable names. To specify required argument use a string name, for an optional argument pass `name = nil` enclosed in quote marks and any variable number of arguments needs to be preceded by asterisk:
|
254
254
|
|
255
255
|
```bash
|
256
256
|
$ teletype add config --args name # required argument
|
@@ -299,7 +299,7 @@ a new command `config` will be added to `commands` folder creating the following
|
|
299
299
|
└── version.rb
|
300
300
|
```
|
301
301
|
|
302
|
-
The `lib/app/cli.rb` file will contain generated command entry which handles the case where the user
|
302
|
+
The `lib/app/cli.rb` file will contain generated command entry which handles the case where the user asks for the `config` command help or invokes the actual command:
|
303
303
|
|
304
304
|
```ruby
|
305
305
|
module App
|
@@ -317,7 +317,7 @@ module App
|
|
317
317
|
end
|
318
318
|
```
|
319
319
|
|
320
|
-
And the `lib/app/commands/config.rb` will allow you to specify all the command logic. In the `Config` class which by convention matches the command name, the `execute` method
|
320
|
+
And the `lib/app/commands/config.rb` will allow you to specify all the command logic. In the `Config` class which by convention matches the command name, the `execute` method provides a place to implement the command logic:
|
321
321
|
|
322
322
|
```ruby
|
323
323
|
module App
|
@@ -486,7 +486,7 @@ module App
|
|
486
486
|
long_desc <<-DESC
|
487
487
|
You can query/set/replace/unset options with this command.
|
488
488
|
|
489
|
-
The name is
|
489
|
+
The name is an optional key separated by a dot, and the value will be escaped.
|
490
490
|
|
491
491
|
This command will fail with non-zero status upon error.
|
492
492
|
DESC
|
@@ -505,7 +505,7 @@ Usage:
|
|
505
505
|
|
506
506
|
You can query/set/replace/unset options with this command.
|
507
507
|
|
508
|
-
The name is
|
508
|
+
The name is an optional key separated by a dot, and the value will be escaped.
|
509
509
|
|
510
510
|
This command will fail with non-zero status upon error.
|
511
511
|
```
|
data/lib/tty/version.rb
CHANGED
data/tty.gemspec
CHANGED
@@ -1,51 +1,52 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require "tty/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "tty"
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
8
8
|
spec.version = TTY::VERSION
|
9
9
|
spec.authors = ["Piotr Murach"]
|
10
|
-
spec.email = [""]
|
10
|
+
spec.email = ["me@piotrmurach.com"]
|
11
11
|
spec.description = %q{A toolbox for developing beautiful command line clients.}
|
12
12
|
spec.summary = %q{A toolbox for developing beautiful command line clients in Ruby with a fluid interface for gathering input, querying terminal properties and displaying information.}
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
13
|
+
spec.homepage = "https://piotrmurach.github.io/tty/"
|
14
|
+
spec.license = "MIT"
|
15
15
|
|
16
|
-
manifest_path = File.expand_path(
|
16
|
+
manifest_path = File.expand_path("tty.manifest", __dir__)
|
17
17
|
spec.files = Dir[*File.read(manifest_path).split]
|
18
18
|
spec.bindir = "exe"
|
19
|
-
spec.executables = [
|
19
|
+
spec.executables = ["teletype"]
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version =
|
22
|
+
spec.required_ruby_version = ">= 2.0.0"
|
23
23
|
|
24
|
-
spec.add_dependency
|
25
|
-
spec.add_dependency
|
26
|
-
spec.add_dependency
|
27
|
-
spec.add_dependency
|
28
|
-
spec.add_dependency
|
29
|
-
spec.add_dependency
|
30
|
-
spec.add_dependency
|
31
|
-
spec.add_dependency
|
32
|
-
spec.add_dependency
|
33
|
-
spec.add_dependency
|
34
|
-
spec.add_dependency
|
35
|
-
spec.add_dependency
|
36
|
-
spec.add_dependency
|
37
|
-
spec.add_dependency
|
38
|
-
spec.add_dependency
|
39
|
-
spec.add_dependency
|
40
|
-
spec.add_dependency
|
41
|
-
spec.add_dependency
|
42
|
-
spec.add_dependency
|
43
|
-
spec.add_dependency
|
44
|
-
spec.add_dependency
|
24
|
+
spec.add_dependency "tty-box", "~> 0.4.1"
|
25
|
+
spec.add_dependency "tty-color", "~> 0.5"
|
26
|
+
spec.add_dependency "tty-command", "~> 0.9.0"
|
27
|
+
spec.add_dependency "tty-config", "~> 0.3.2"
|
28
|
+
spec.add_dependency "tty-cursor", "~> 0.7"
|
29
|
+
spec.add_dependency "tty-editor", "~> 0.5"
|
30
|
+
spec.add_dependency "tty-file", "~> 0.8.0"
|
31
|
+
spec.add_dependency "tty-font", "~> 0.4.0"
|
32
|
+
spec.add_dependency "tty-logger", "~> 0.2.0"
|
33
|
+
spec.add_dependency "tty-markdown", "~> 0.6.0"
|
34
|
+
spec.add_dependency "tty-pager", "~> 0.12"
|
35
|
+
spec.add_dependency "tty-pie", "~> 0.3.0"
|
36
|
+
spec.add_dependency "tty-platform", "~> 0.2"
|
37
|
+
spec.add_dependency "tty-progressbar", "~> 0.17"
|
38
|
+
spec.add_dependency "tty-prompt", "~> 0.19"
|
39
|
+
spec.add_dependency "tty-screen", "~> 0.7"
|
40
|
+
spec.add_dependency "tty-spinner", "~> 0.9"
|
41
|
+
spec.add_dependency "tty-table", "~> 0.11.0"
|
42
|
+
spec.add_dependency "tty-tree", "~> 0.3"
|
43
|
+
spec.add_dependency "tty-which", "~> 0.4"
|
44
|
+
spec.add_dependency "equatable", "~> 0.5"
|
45
|
+
spec.add_dependency "pastel", "~> 0.7.2"
|
45
46
|
|
46
|
-
spec.add_dependency
|
47
|
-
spec.add_dependency
|
47
|
+
spec.add_dependency "thor", "~> 0.20.0"
|
48
|
+
spec.add_dependency "bundler", "~> 1.16", "< 2.0"
|
48
49
|
|
49
|
-
spec.add_development_dependency
|
50
|
-
spec.add_development_dependency
|
50
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
51
|
+
spec.add_development_dependency "rake"
|
51
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-box
|
@@ -16,100 +16,114 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.4.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tty-color
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: tty-command
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.9.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tty-config
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.3.
|
61
|
+
version: 0.3.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.3.
|
68
|
+
version: 0.3.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tty-cursor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.7'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: tty-editor
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.5
|
89
|
+
version: '0.5'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.5
|
96
|
+
version: '0.5'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: tty-file
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.8.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.8.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: tty-font
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.4.0
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.4.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: tty-logger
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
@@ -128,140 +142,140 @@ dependencies:
|
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
145
|
+
version: 0.6.0
|
132
146
|
type: :runtime
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
152
|
+
version: 0.6.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: tty-pager
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.12
|
159
|
+
version: '0.12'
|
146
160
|
type: :runtime
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.12
|
166
|
+
version: '0.12'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: tty-pie
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
173
|
+
version: 0.3.0
|
160
174
|
type: :runtime
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
180
|
+
version: 0.3.0
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: tty-platform
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
170
184
|
requirements:
|
171
185
|
- - "~>"
|
172
186
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.2
|
187
|
+
version: '0.2'
|
174
188
|
type: :runtime
|
175
189
|
prerelease: false
|
176
190
|
version_requirements: !ruby/object:Gem::Requirement
|
177
191
|
requirements:
|
178
192
|
- - "~>"
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.2
|
194
|
+
version: '0.2'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: tty-progressbar
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
184
198
|
requirements:
|
185
199
|
- - "~>"
|
186
200
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.
|
201
|
+
version: '0.17'
|
188
202
|
type: :runtime
|
189
203
|
prerelease: false
|
190
204
|
version_requirements: !ruby/object:Gem::Requirement
|
191
205
|
requirements:
|
192
206
|
- - "~>"
|
193
207
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.
|
208
|
+
version: '0.17'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: tty-prompt
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
198
212
|
requirements:
|
199
213
|
- - "~>"
|
200
214
|
- !ruby/object:Gem::Version
|
201
|
-
version: 0.
|
215
|
+
version: '0.19'
|
202
216
|
type: :runtime
|
203
217
|
prerelease: false
|
204
218
|
version_requirements: !ruby/object:Gem::Requirement
|
205
219
|
requirements:
|
206
220
|
- - "~>"
|
207
221
|
- !ruby/object:Gem::Version
|
208
|
-
version: 0.
|
222
|
+
version: '0.19'
|
209
223
|
- !ruby/object:Gem::Dependency
|
210
224
|
name: tty-screen
|
211
225
|
requirement: !ruby/object:Gem::Requirement
|
212
226
|
requirements:
|
213
227
|
- - "~>"
|
214
228
|
- !ruby/object:Gem::Version
|
215
|
-
version: '0.
|
229
|
+
version: '0.7'
|
216
230
|
type: :runtime
|
217
231
|
prerelease: false
|
218
232
|
version_requirements: !ruby/object:Gem::Requirement
|
219
233
|
requirements:
|
220
234
|
- - "~>"
|
221
235
|
- !ruby/object:Gem::Version
|
222
|
-
version: '0.
|
236
|
+
version: '0.7'
|
223
237
|
- !ruby/object:Gem::Dependency
|
224
238
|
name: tty-spinner
|
225
239
|
requirement: !ruby/object:Gem::Requirement
|
226
240
|
requirements:
|
227
241
|
- - "~>"
|
228
242
|
- !ruby/object:Gem::Version
|
229
|
-
version: 0.9
|
243
|
+
version: '0.9'
|
230
244
|
type: :runtime
|
231
245
|
prerelease: false
|
232
246
|
version_requirements: !ruby/object:Gem::Requirement
|
233
247
|
requirements:
|
234
248
|
- - "~>"
|
235
249
|
- !ruby/object:Gem::Version
|
236
|
-
version: 0.9
|
250
|
+
version: '0.9'
|
237
251
|
- !ruby/object:Gem::Dependency
|
238
252
|
name: tty-table
|
239
253
|
requirement: !ruby/object:Gem::Requirement
|
240
254
|
requirements:
|
241
255
|
- - "~>"
|
242
256
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.
|
257
|
+
version: 0.11.0
|
244
258
|
type: :runtime
|
245
259
|
prerelease: false
|
246
260
|
version_requirements: !ruby/object:Gem::Requirement
|
247
261
|
requirements:
|
248
262
|
- - "~>"
|
249
263
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.
|
264
|
+
version: 0.11.0
|
251
265
|
- !ruby/object:Gem::Dependency
|
252
266
|
name: tty-tree
|
253
267
|
requirement: !ruby/object:Gem::Requirement
|
254
268
|
requirements:
|
255
269
|
- - "~>"
|
256
270
|
- !ruby/object:Gem::Version
|
257
|
-
version: 0.
|
271
|
+
version: '0.3'
|
258
272
|
type: :runtime
|
259
273
|
prerelease: false
|
260
274
|
version_requirements: !ruby/object:Gem::Requirement
|
261
275
|
requirements:
|
262
276
|
- - "~>"
|
263
277
|
- !ruby/object:Gem::Version
|
264
|
-
version: 0.
|
278
|
+
version: '0.3'
|
265
279
|
- !ruby/object:Gem::Dependency
|
266
280
|
name: tty-which
|
267
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,7 +382,7 @@ dependencies:
|
|
368
382
|
version: '0'
|
369
383
|
description: A toolbox for developing beautiful command line clients.
|
370
384
|
email:
|
371
|
-
-
|
385
|
+
- me@piotrmurach.com
|
372
386
|
executables:
|
373
387
|
- teletype
|
374
388
|
extensions: []
|
@@ -435,8 +449,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
449
|
- !ruby/object:Gem::Version
|
436
450
|
version: '0'
|
437
451
|
requirements: []
|
438
|
-
|
439
|
-
rubygems_version: 2.7.3
|
452
|
+
rubygems_version: 3.0.3
|
440
453
|
signing_key:
|
441
454
|
specification_version: 4
|
442
455
|
summary: A toolbox for developing beautiful command line clients in Ruby with a fluid
|