claiss 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/claiss.rb +60 -60
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1aeba7f21350d881633d4d21d29cb4f85a4bba95ca0fb4f98530e8ac720681d
|
4
|
+
data.tar.gz: 03dedc88fbc506e11c9b6f68e2eb6ea425b953113251bb2bde9d7b935c6d17fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d37082c93df94fe71ee8d55f773435212a6fbe235e31e389833fc82be22fce5f5212511d4a620a0aa117ae843d5d8865e29a20f885bbc7c07eb6e0db59692ab
|
7
|
+
data.tar.gz: aa6d5d393da6782cca6126f0db9acca7d3f0634b9fcb79da33cf692deed277e2526fecbfafd43f73d04dc6b6d35067fde6bd9a07487658e26ba53c9e4ac47c71
|
data/lib/claiss.rb
CHANGED
@@ -73,81 +73,81 @@ module Claiss
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
class Echo < Dry::CLI::Command
|
77
|
-
|
76
|
+
# class Echo < Dry::CLI::Command
|
77
|
+
# desc "Print input"
|
78
78
|
|
79
|
-
|
79
|
+
# argument :input, desc: "Input to print"
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
# example [
|
82
|
+
# " # Prints 'wuh?'",
|
83
|
+
# "hello, folks # Prints 'hello, folks'"
|
84
|
+
# ]
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
end
|
86
|
+
# def call(input: nil, **)
|
87
|
+
# if input.nil?
|
88
|
+
# puts "wuh?"
|
89
|
+
# else
|
90
|
+
# puts input
|
91
|
+
# end
|
92
|
+
# end
|
93
|
+
# end
|
94
94
|
|
95
|
-
class Start < Dry::CLI::Command
|
96
|
-
|
95
|
+
# class Start < Dry::CLI::Command
|
96
|
+
# desc "Start Foo machinery"
|
97
97
|
|
98
|
-
|
98
|
+
# argument :root, required: true, desc: "Root directory"
|
99
99
|
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
# example [
|
101
|
+
# "path/to/root # Start Foo at root directory"
|
102
|
+
# ]
|
103
103
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
end
|
104
|
+
# def call(root:, **)
|
105
|
+
# puts "started - root: #{root}"
|
106
|
+
# end
|
107
|
+
# end
|
108
108
|
|
109
|
-
class Stop < Dry::CLI::Command
|
110
|
-
|
109
|
+
# class Stop < Dry::CLI::Command
|
110
|
+
# desc "Stop Foo machinery"
|
111
111
|
|
112
|
-
|
112
|
+
# option :graceful, type: :boolean, default: true, desc: "Graceful stop"
|
113
113
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
end
|
114
|
+
# def call(**options)
|
115
|
+
# puts "stopped - graceful: #{options.fetch(:graceful)}"
|
116
|
+
# end
|
117
|
+
# end
|
118
118
|
|
119
|
-
class Exec < Dry::CLI::Command
|
120
|
-
|
119
|
+
# class Exec < Dry::CLI::Command
|
120
|
+
# desc "Execute a task"
|
121
121
|
|
122
|
-
|
123
|
-
|
122
|
+
# argument :task, type: :string, required: true, desc: "Task to be executed"
|
123
|
+
# argument :dirs, type: :array, required: false, desc: "Optional directories"
|
124
124
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
end
|
125
|
+
# def call(task:, dirs: [], **)
|
126
|
+
# puts "exec - task: #{task}, dirs: #{dirs.inspect}"
|
127
|
+
# end
|
128
|
+
# end
|
129
129
|
|
130
|
-
module Generate
|
131
|
-
|
132
|
-
|
130
|
+
# module Generate
|
131
|
+
# class Configuration < Dry::CLI::Command
|
132
|
+
# desc "Generate configuration"
|
133
133
|
|
134
|
-
|
134
|
+
# option :apps, type: :array, default: [], desc: "Generate configuration for specific apps"
|
135
135
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
136
|
+
# def call(apps:, **)
|
137
|
+
# puts "generated configuration for apps: #{apps.inspect}"
|
138
|
+
# end
|
139
|
+
# end
|
140
140
|
|
141
|
-
|
142
|
-
|
141
|
+
# class Test < Dry::CLI::Command
|
142
|
+
# desc "Generate tests"
|
143
143
|
|
144
|
-
|
144
|
+
# option :framework, default: "minitest", values: %w[minitest rspec]
|
145
145
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
end
|
146
|
+
# def call(framework:, **)
|
147
|
+
# puts "generated tests - framework: #{framework}"
|
148
|
+
# end
|
149
|
+
# end
|
150
|
+
# end
|
151
151
|
|
152
152
|
register "version", Version, aliases: ["v", "-v", "--version"]
|
153
153
|
#register "echo", Echo
|
@@ -156,8 +156,8 @@ module Claiss
|
|
156
156
|
#register "exec", Exec
|
157
157
|
register "refactor",Refactor
|
158
158
|
|
159
|
-
register "generate", aliases: ["g"] do |prefix|
|
160
|
-
|
161
|
-
|
162
|
-
end
|
159
|
+
# register "generate", aliases: ["g"] do |prefix|
|
160
|
+
# prefix.register "config", Generate::Configuration
|
161
|
+
# prefix.register "test", Generate::Test
|
162
|
+
# end
|
163
163
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: claiss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Júlio Papel
|
@@ -81,7 +81,8 @@ files:
|
|
81
81
|
homepage: http://rubygems.org/gems/claiss
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
|
-
metadata:
|
84
|
+
metadata:
|
85
|
+
documentation_uri: https://github.com/JulioPapel/claiss/blob/main/readme.md
|
85
86
|
post_install_message:
|
86
87
|
rdoc_options: []
|
87
88
|
require_paths:
|
@@ -90,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
91
|
requirements:
|
91
92
|
- - ">="
|
92
93
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
94
|
+
version: 2.7.0
|
94
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
96
|
requirements:
|
96
97
|
- - ">="
|