Skip to content

Commit

Permalink
better cli interface for forbidden tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Apr 6, 2018
1 parent 4e58501 commit 174b291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/wordmove/guardian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def initialize(options: nil, action: nil)

def allows(task)
if forbidden?(task)
logger.task("#{action.capitalize}ing #{task.capitalize}")
logger.warn("You tried to #{action} #{task}, but is forbidden by configuration. Skipping")
end

Expand Down
2 changes: 1 addition & 1 deletion lib/wordmove/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Wordmove
VERSION = "3.0.1".freeze
VERSION = "3.0.2".freeze
end

0 comments on commit 174b291

Please sign in to comment.