sutty-cli 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +168 -0
  3. data/README.md +60 -0
  4. data/exe/sutty-cli +18 -0
  5. data/lib/sutty/cli.rb +8 -0
  6. data/lib/sutty/cli/cli.rb +163 -0
  7. data/lib/sutty/cli/command.rb +123 -0
  8. data/lib/sutty/cli/commands/container.rb +39 -0
  9. data/lib/sutty/cli/commands/field.rb +87 -0
  10. data/lib/sutty/cli/commands/layout.rb +57 -0
  11. data/lib/sutty/cli/commands/post.rb +69 -0
  12. data/lib/sutty/cli/commands/theme.rb +49 -0
  13. data/lib/sutty/cli/templates/field/array.yml.erb +14 -0
  14. data/lib/sutty/cli/templates/field/belongs_to.yml.erb +16 -0
  15. data/lib/sutty/cli/templates/field/boolean.yml.erb +11 -0
  16. data/lib/sutty/cli/templates/field/color.yml.erb +11 -0
  17. data/lib/sutty/cli/templates/field/content.yml.erb +14 -0
  18. data/lib/sutty/cli/templates/field/date.yml.erb +11 -0
  19. data/lib/sutty/cli/templates/field/email.yml.erb +14 -0
  20. data/lib/sutty/cli/templates/field/encrypted_text.yml.erb +11 -0
  21. data/lib/sutty/cli/templates/field/event.yml.erb +40 -0
  22. data/lib/sutty/cli/templates/field/file.yml.erb +19 -0
  23. data/lib/sutty/cli/templates/field/geo.yml.erb +17 -0
  24. data/lib/sutty/cli/templates/field/has_and_belongs_to_many.yml.erb +16 -0
  25. data/lib/sutty/cli/templates/field/has_many.yml.erb +16 -0
  26. data/lib/sutty/cli/templates/field/image.yml.erb +19 -0
  27. data/lib/sutty/cli/templates/field/locales.yml.erb +11 -0
  28. data/lib/sutty/cli/templates/field/markdown.yml.erb +14 -0
  29. data/lib/sutty/cli/templates/field/markdown_content.yml.erb +14 -0
  30. data/lib/sutty/cli/templates/field/number.yml.erb +11 -0
  31. data/lib/sutty/cli/templates/field/order.yml.erb +11 -0
  32. data/lib/sutty/cli/templates/field/predefined_array.yml.erb +18 -0
  33. data/lib/sutty/cli/templates/field/related_posts.yml.erb +15 -0
  34. data/lib/sutty/cli/templates/field/string.yml.erb +14 -0
  35. data/lib/sutty/cli/templates/field/tel.yml.erb +14 -0
  36. data/lib/sutty/cli/templates/field/text.yml.erb +14 -0
  37. data/lib/sutty/cli/templates/field/url.yml.erb +14 -0
  38. data/lib/sutty/cli/version.rb +5 -0
  39. metadata +179 -0
@@ -0,0 +1,19 @@
1
+ <%= name %>:
2
+ type: 'file'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ path:
7
+ label:
8
+ es: 'Archivo'
9
+ en: 'File'
10
+ help:
11
+ es: 'Ayuda'
12
+ en: 'Ayuda'
13
+ description:
14
+ label:
15
+ es: 'Descripción'
16
+ en: 'Description'
17
+ help:
18
+ es: 'Ayuda'
19
+ en: 'Ayuda'
@@ -0,0 +1,17 @@
1
+ <%= name %>:
2
+ type: 'geo'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ label:
7
+ es: 'Coordenadas geográficas'
8
+ lat:
9
+ label:
10
+ es: 'Latitud'
11
+ help:
12
+ es: 'Latitud'
13
+ lng:
14
+ label:
15
+ es: 'Longitud'
16
+ help:
17
+ es: 'Longitud'
@@ -0,0 +1,16 @@
1
+ <%= name %>:
2
+ type: 'has_and_belongs_to_many'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ inverse: '<%= inverse %>'
7
+ <% if filter %>
8
+ filter:
9
+ <%= filter %>: <%= value %>
10
+ <% end %>
11
+ label:
12
+ es: 'Nombre'
13
+ en: 'Name'
14
+ help:
15
+ es: 'Ayuda'
16
+ en: 'Ayuda'
@@ -0,0 +1,16 @@
1
+ <%= name %>:
2
+ type: 'has_many'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ inverse: '<%= inverse %>'
7
+ <% if filter %>
8
+ filter:
9
+ <%= filter %>: <%= value %>
10
+ <% end %>
11
+ label:
12
+ es: 'Nombre'
13
+ en: 'Name'
14
+ help:
15
+ es: 'Ayuda'
16
+ en: 'Ayuda'
@@ -0,0 +1,19 @@
1
+ <%= name %>:
2
+ type: 'image'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ path:
7
+ label:
8
+ es: 'Archivo'
9
+ en: 'File'
10
+ help:
11
+ es: 'Ayuda'
12
+ en: 'Ayuda'
13
+ description:
14
+ label:
15
+ es: 'Descripción'
16
+ en: 'Description'
17
+ help:
18
+ es: 'Ayuda'
19
+ en: 'Ayuda'
@@ -0,0 +1,11 @@
1
+ <%= name %>:
2
+ type: 'locales'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ label:
7
+ es: 'Traducciones'
8
+ en: 'Translations'
9
+ help:
10
+ es: 'Vínculo a los artículos en otros idiomas'
11
+ en: 'Link to the post in other languages'
@@ -0,0 +1,14 @@
1
+ <%= name %>:
2
+ type: 'markdown'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Nombre'
11
+ en: 'Name'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
@@ -0,0 +1,14 @@
1
+ <%= name %>:
2
+ type: 'markdown_content'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Nombre'
11
+ en: 'Name'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
@@ -0,0 +1,11 @@
1
+ <%= name %>:
2
+ type: 'number'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ label:
7
+ es: 'Nombre'
8
+ en: 'Name'
9
+ help:
10
+ es: 'Ayuda'
11
+ en: 'Ayuda'
@@ -0,0 +1,11 @@
1
+ <%= name %>:
2
+ type: 'order'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ label:
7
+ es: 'Orden'
8
+ en: 'Order'
9
+ help:
10
+ es: 'La posición del artículo en la lista de artículos'
11
+ en: 'The post position in the posts list'
@@ -0,0 +1,18 @@
1
+ <%= name %>:
2
+ type: 'predefined_array'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Nombre'
11
+ en: 'Name'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
15
+ values:
16
+ the_stored_value:
17
+ es: 'Agrega una lista de valores y sus etiquetas'
18
+ en: 'Add a hash of values and their labels'
@@ -0,0 +1,15 @@
1
+ <%= name %>:
2
+ type: 'related_posts'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if filter %>
7
+ filter:
8
+ <%= filter %>: <%= value %>
9
+ <% end %>
10
+ label:
11
+ es: 'Nombre'
12
+ en: 'Name'
13
+ help:
14
+ es: 'Ayuda'
15
+ en: 'Ayuda'
@@ -0,0 +1,14 @@
1
+ <%= name %>:
2
+ type: 'string'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Nombre'
11
+ en: 'Name'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
@@ -0,0 +1,14 @@
1
+ <%= name %>:
2
+ type: 'tel'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Teléfono'
11
+ en: 'Telephone'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
@@ -0,0 +1,14 @@
1
+ <%= name %>:
2
+ type: 'text'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Nombre'
11
+ en: 'Name'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
@@ -0,0 +1,14 @@
1
+ <%= name %>:
2
+ type: 'url'
3
+ <% if required %>
4
+ required: true
5
+ <% end %>
6
+ <% if private %>
7
+ private: true
8
+ <% end %>
9
+ label:
10
+ es: 'Nombre'
11
+ en: 'Name'
12
+ help:
13
+ es: 'Ayuda'
14
+ en: 'Ayuda'
@@ -0,0 +1,5 @@
1
+ module Sutty
2
+ module Cli
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,179 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sutty-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - f
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-09-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tty-command
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: tty-file
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: tty-logger
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: tty
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Tools to develop Sutty's themes and plugins
98
+ email:
99
+ - f@sutty.nl
100
+ executables:
101
+ - sutty-cli
102
+ extensions: []
103
+ extra_rdoc_files:
104
+ - README.md
105
+ - LICENSE.txt
106
+ files:
107
+ - LICENSE.txt
108
+ - README.md
109
+ - exe/sutty-cli
110
+ - lib/sutty/cli.rb
111
+ - lib/sutty/cli/cli.rb
112
+ - lib/sutty/cli/command.rb
113
+ - lib/sutty/cli/commands/container.rb
114
+ - lib/sutty/cli/commands/field.rb
115
+ - lib/sutty/cli/commands/layout.rb
116
+ - lib/sutty/cli/commands/post.rb
117
+ - lib/sutty/cli/commands/theme.rb
118
+ - lib/sutty/cli/templates/field/array.yml.erb
119
+ - lib/sutty/cli/templates/field/belongs_to.yml.erb
120
+ - lib/sutty/cli/templates/field/boolean.yml.erb
121
+ - lib/sutty/cli/templates/field/color.yml.erb
122
+ - lib/sutty/cli/templates/field/content.yml.erb
123
+ - lib/sutty/cli/templates/field/date.yml.erb
124
+ - lib/sutty/cli/templates/field/email.yml.erb
125
+ - lib/sutty/cli/templates/field/encrypted_text.yml.erb
126
+ - lib/sutty/cli/templates/field/event.yml.erb
127
+ - lib/sutty/cli/templates/field/file.yml.erb
128
+ - lib/sutty/cli/templates/field/geo.yml.erb
129
+ - lib/sutty/cli/templates/field/has_and_belongs_to_many.yml.erb
130
+ - lib/sutty/cli/templates/field/has_many.yml.erb
131
+ - lib/sutty/cli/templates/field/image.yml.erb
132
+ - lib/sutty/cli/templates/field/locales.yml.erb
133
+ - lib/sutty/cli/templates/field/markdown.yml.erb
134
+ - lib/sutty/cli/templates/field/markdown_content.yml.erb
135
+ - lib/sutty/cli/templates/field/number.yml.erb
136
+ - lib/sutty/cli/templates/field/order.yml.erb
137
+ - lib/sutty/cli/templates/field/predefined_array.yml.erb
138
+ - lib/sutty/cli/templates/field/related_posts.yml.erb
139
+ - lib/sutty/cli/templates/field/string.yml.erb
140
+ - lib/sutty/cli/templates/field/tel.yml.erb
141
+ - lib/sutty/cli/templates/field/text.yml.erb
142
+ - lib/sutty/cli/templates/field/url.yml.erb
143
+ - lib/sutty/cli/version.rb
144
+ homepage: https://0xacab.org/sutty/sutty-cli
145
+ licenses:
146
+ - MIT
147
+ metadata:
148
+ bug_tracker_uri: https://0xacab.org/sutty/sutty-cli/issues
149
+ homepage_uri: https://0xacab.org/sutty/sutty-cli
150
+ source_code_uri: https://0xacab.org/sutty/sutty-cli
151
+ changelog_uri: https://0xacab.org/sutty/sutty-cli/-/blob/master/CHANGELOG.md
152
+ documentation_uri: https://rubydoc.info/gems/sutty-cli
153
+ post_install_message:
154
+ rdoc_options:
155
+ - "--title"
156
+ - sutty-cli - Sutty CLI Tools
157
+ - "--main"
158
+ - README.md
159
+ - "--line-numbers"
160
+ - "--inline-source"
161
+ - "--quiet"
162
+ require_paths:
163
+ - lib
164
+ required_ruby_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: 2.6.0
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ requirements: []
175
+ rubygems_version: 3.0.3
176
+ signing_key:
177
+ specification_version: 4
178
+ summary: Sutty CLI Tools
179
+ test_files: []