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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c277e56e0c21fbb3a590af48d47d65d020fc93df1e1b127ac4e90124426b6b18
4
- data.tar.gz: 2a7e8ce4d06bc8ab9cb15708871107ab34249afab8f61709ab798343e0d85242
3
+ metadata.gz: 77ce1057ad9f1213ed089114b632bf87c6a600ec04aa718fc990951312083f94
4
+ data.tar.gz: b5902118f9fd5b59841181da6ab0131ed8d57697565ee39805e6e7174a763943
5
5
  SHA512:
6
- metadata.gz: b556db258d22cbd92eac0c94fe62c2cee5a7d4995dfe8a6790b97e6c514936cb0e9c4ef03f21f55c2d7b61fa830750c6d1045e3e487a39b0f5a959af8ec40632
7
- data.tar.gz: e3dfc208e7bc28f4ba5f8717539f82f52751d086d4ec77c652f06f895d92109bb1a1ff3b2dbfe5a0eb26d0587f92885dcdf3071fcf67b75005cdcde14215786b
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vercon
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
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.2
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