Hop Search

Hop Search is a command line tool to search for metadata in Hop or a Hop project.

Usage

Usage: <main class> [-hilx] [-e=<environmentOption>] [-j=<projectOption>]
                    <searchString>
      <searchString>         The string to search for
  -e, --environment=<environmentOption>
                             The name of the lifecycle environment to use
  -h, --help                 Displays this help message and quits.
  -i, --case-insensitive     Perform a case insensitive search
  -j, --project=<projectOption>
                             The name of the project to use
  -l, --print-locations      Print which locations are being looked at
  -x, --regular-expression   The specified search string is a regular expression
./hop-search.sh  9.08s user 0.44s system 338% cpu 2.808 total

Options

Option Description

<searchString>

The string to search for

-e

The name of the lifecycle environment to use

-h

Displays this help message and quits.

-i

Perform a case insensitive search

-j

The name of the project to use

-l

Print which locations are being looked at

-x

The specified search string is a regular expression

Examples

Example command: search for the string 'json' (case insensitive) in the 'hop-samples' project.

Command: `./hop-search.sh -j hop-samples -i json `

Output:

<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : null : matching property value: Enhanced JSON - Generate complex nested structure from table
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : matching property value: EnhancedJsonOutput
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : matching property value: Enhanced JSON Output
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : jsonBloc
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : jsonPrittified (Boolean)
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : isJSONFragment (Boolean)
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : isJSONFragment (Boolean)
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : isJSONFragment (Boolean)
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : matching property value: EnhancedJsonOutput
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : matching property value: Enhanced JSON Output
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : pipeline transform property : jsonPrittified (Boolean)
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : pipeline transform property : isJSONFragment (Boolean)
<PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : null : matching property value: This sample gets a table of values and generate a complex nested structure as output
by looping over a predefined key. Second Enhanced JSON Transform als gets a JSON fragment produced
by furst Enhanced JSON Transform and use it as value of an attribute of the resulting final
JSON stream.