Sha256: f98ff8bac83d9df5344fd42f944f3e661f7168beea796d1e8f95ed11d84bf3a0
Contents?: true
Size: 681 Bytes
Versions: 3
Compression:
Stored size: 681 Bytes
Contents
require "thor" require "urban_pass/generate" module UrbanPass class CLI < Thor desc "generate_phrase", "Creates a new pass-phrase" def generate_phrase urban = UrbanPass::Generate.new pass_phrase = urban.generate_phrase puts "Your password is #{pass_phrase}" puts "It was copied correctly" end desc "define [WORD]", "Defines a word you may not know" def define(*word) words = word.join(" ") urban = UrbanPass::Generate.new entry = urban.defination(words) word = words.upcase puts "The defination for #{ word } is:" puts entry.definitions.first end default_task :generate_phrase end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
urban_pass-0.2.5 | lib/urban_pass/cli.rb |
urban_pass-0.2.4 | lib/urban_pass/cli.rb |
urban_pass-0.2.3 | lib/urban_pass/cli.rb |