Class: Unisec::CLI::Commands::Grep

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/unisec/cli/rugrep.rb

Overview

CLI command unisec grep for the class Rugrep from the lib.

Example:

$ unisec grep 'FRENCH \w+'
U+20A3  ₣    FRENCH FRANC SIGN
U+1F35F 🍟    FRENCH FRIES

Instance Method Summary collapse

Instance Method Details

#call(regexp: nil) ⇒ Object

Hexdump of all Unicode encodings.

Parameters:

  • regexp (Regexp) (defaults to: nil)

    Regular expression without delimiters or modifiers. Supports everything Ruby Regexp supports



27
28
29
# File 'lib/unisec/cli/rugrep.rb', line 27

def call(regexp: nil, **)
  puts Unisec::Rugrep.regrep_display(regexp)
end