TIBCOSoftware / flogo-cli

Project Flogo Command Line Interface
http://flogo.io
BSD 3-Clause "New" or "Revised" License
57 stars 28 forks source link

Added search functionality #106

Closed retgits closed 6 years ago

retgits commented 6 years ago

What kind of change does this PR introduce? (check one with "x")

[] Bugfix
[X] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

What is the current behavior? Currently, it is difficult to find activities and triggers created by the community. This PR introduces the search functionality

What is the new behavior? A new command has been added to the existing CLI

Usage:

    flogo  search [-type type][-string search]

Search the Flogo Artifact Repository for activities and triggers.

Options:
    -type     the type you're looking for ("all"|"activity"|"trigger")
    -string   the search string you want to use

Example:
    flogo search -type activity -string "dynamo" would search the repository for activities connecting to DynamoDB

Output of running the command flogo search -type activity -string dynamo

+-----------------+----------+--------------------------------+---------------------------------------------------------------------------------+---------+
|      NAME       |   TYPE   |          DESCRIPTION           |                                       URL                                       | AUTHOR  |
+-----------------+----------+--------------------------------+---------------------------------------------------------------------------------+---------+
| DynamoDB Insert | activity | Inserts a record in an Amazon  | https://github.com/retgits/flogo-components/tree/master/activity/dynamodbinsert | retgits |
|                 |          | DynamoDB.                      |                                                                                 |         |
| DynamoDB Query  | activity | Executes a query against an    | https://github.com/retgits/flogo-components/tree/master/activity/dynamodbquery  | retgits |
|                 |          | Amazon DynamoDB.               |                                                                                 |         |
+-----------------+----------+--------------------------------+---------------------------------------------------------------------------------+---------+