require 'twik' require 'twik/cli/config' require 'twik/cli/options' class Twik class Cli attr_reader :config def initialize(args) @config = Config.new(args) end def twik @twik ||= Twik.new(config.privatekey, length: config.length, type: config.type.to_sym) end def run puts twik.generate(config.tag, config.masterkey) end end end