vercon 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vercon/cli.rb +2 -0
- data/lib/vercon/commands/version.rb +21 -0
- data/lib/vercon/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ce1057ad9f1213ed089114b632bf87c6a600ec04aa718fc990951312083f94
|
4
|
+
data.tar.gz: b5902118f9fd5b59841181da6ab0131ed8d57697565ee39805e6e7174a763943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230f23e688c23bc89b9fddb01acb821b77290a93acafaa80d0be80059886e05204ee9862133fbad8e67ca18166d5bd2f1bc35d809e5db42e355dfee447db90d6
|
7
|
+
data.tar.gz: cc1ecd4620fc12c490f5612fd6c4e74e5e12518db460ce8d96adc0bf05d96082f10300818124c248fb7082983b56497e59ddde196224be45a66979a9718a0e51
|
data/lib/vercon/cli.rb
CHANGED
@@ -4,6 +4,7 @@ require "dry/cli"
|
|
4
4
|
|
5
5
|
require_relative "commands/init"
|
6
6
|
require_relative "commands/generate"
|
7
|
+
require_relative "commands/version"
|
7
8
|
|
8
9
|
module Vercon
|
9
10
|
class CLI
|
@@ -11,5 +12,6 @@ module Vercon
|
|
11
12
|
|
12
13
|
register "init", Commands::Init, aliases: ["i"]
|
13
14
|
register "generate", Commands::Generate, aliases: ["g"]
|
15
|
+
register "version", Commands::Version, aliases: ["v", "-v", "--version"]
|
14
16
|
end
|
15
17
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../version"
|
4
|
+
|
5
|
+
module Vercon
|
6
|
+
module Commands
|
7
|
+
class Version < Dry::CLI::Command
|
8
|
+
desc "Print version"
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@stdout = Vercon::Stdout.new
|
12
|
+
|
13
|
+
super
|
14
|
+
end
|
15
|
+
|
16
|
+
def call(*)
|
17
|
+
@stdout.puts ::Vercon::VERSION
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/vercon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vercon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Beznos
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- lib/vercon/cli.rb
|
156
156
|
- lib/vercon/commands/generate.rb
|
157
157
|
- lib/vercon/commands/init.rb
|
158
|
+
- lib/vercon/commands/version.rb
|
158
159
|
- lib/vercon/config.rb
|
159
160
|
- lib/vercon/factories.rb
|
160
161
|
- lib/vercon/prompt.rb
|