Skip to content

Commit

Permalink
Add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Jul 11, 2019
1 parent 7eebc21 commit f29a72e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
table_saw (1.0.0)
table_saw (1.0.1)
connection_pool
pg
thor
Expand Down
6 changes: 6 additions & 0 deletions exe/table-saw
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'table_saw'
require 'table_saw/create_dump_file'
require 'table_saw/version'
require 'thor'

class CLI < Thor
Expand All @@ -28,6 +29,11 @@ class CLI < Thor
records = TableSaw::DependencyGraph::Build.new(TableSaw::Manifest.instance).call
TableSaw::CreateDumpFile.new(records, options[:output]).call
end

desc 'version', 'Print version of table-saw'
def version
puts TableSaw::VERSION
end
end

CLI.start
2 changes: 1 addition & 1 deletion lib/table_saw/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module TableSaw
VERSION = '1.0.0'
VERSION = '1.0.1'
end

0 comments on commit f29a72e

Please sign in to comment.