lib/urban_pass/cli.rb in urban_pass-0.0.4 vs lib/urban_pass/cli.rb in urban_pass-0.0.4.1
- old
+ new
@@ -5,13 +5,13 @@
class CLI < Thor
desc "generate_phrase", "creates a new pass-phrase"
def generate_phrase
urban = UrbanPass::Generate.new
- urban.generate_phrase
+ pass_phrase = urban.generate_phrase
+ puts "Your password is #{pass_phrase}"
+ puts "It was copied correctly"
end
+
default_task :generate_phrase
- # if ARGV.empty?
- # UrbanPass::CLI.new.generate_phrase
- # end
end
end