Skip to content

Commit

Permalink
Get users information on how to provide feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kalabiyau committed Nov 9, 2017
1 parent 1096679 commit ce43e0f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -31,4 +31,4 @@ coverage/
config/secrets.yml.key
config/secrets.yml.enc
config/rmt.local.yml

public/repo
8 changes: 8 additions & 0 deletions lib/rmt/cli/main.rb
Expand Up @@ -33,6 +33,14 @@ def version
puts RMT::VERSION
end

desc 'feedback', 'How to provide feedback about RMT'
def feedback
puts <<-eof.squish
RMT project developers would love to hear from you! Please do not hesitate
to reach out to us via https://github.com/suse/rmt/issues'
eof
end

map %w[--version -v] => :version

end
12 changes: 12 additions & 0 deletions spec/lib/rmt/cli/main_spec.rb
Expand Up @@ -12,6 +12,18 @@
it 'displays help' do
expect { command }.to output(/Commands:/).to_stdout
end

it 'displays feedback' do
expect { command }.to output(/feedback/).to_stdout
end
end

context 'feedback' do
let(:argv) { ['feedback'] }

it 'mentions github where users can leave their feedback' do
expect { command }.to output(/github/).to_stdout
end
end

context 'version argument' do
Expand Down

0 comments on commit ce43e0f

Please sign in to comment.