An open API service indexing awesome lists of open source software.

https://github.com/retgits/fdio

Flogo Dot IO - cli to create the showcase
https://github.com/retgits/fdio

flogo flogo-dot-io tools

Last synced: 6 months ago
JSON representation

Flogo Dot IO - cli to create the showcase

Awesome Lists containing this project

README

          

# fdio - Flogo Dot IO

A command-line interface for the Flogo Dot IO website. This tool is designed to help create the `items.toml` from which the [showcase](https://tibcosoftware.github.io/flogo/showcases/) and the [flogo cli](https://github.com/TIBCOSoftware/flogo-cli) can get their search results.

## Installing

There are a few ways to install this project

### Get the sources

You can get the sources for this project by simply running

```bash
go get -u github.com/retgits/fdio/...
```

You can create a binary using the `install` command

```bash
go install ./...
```

### Build from source

To build the fdio command-line interface simply run `go build`. This does require your system to have `gcc` installed. To build for Windows, you'll need to have CGO enabled

```bash
GOOS=windows CGO_ENABLED=1 CC="x86_64-w64-mingw32-gcc" go build
```

_You might need additional packages if you're running this command on a Linux system (like `apt-get install gcc-mingw-w64-x86-64 mingw-w64-x86-64-dev`)_

## Usage

```text
A command-line interface for the Flogo Dot IO website

Usage:
fdio [command]

Available Commands:
crawl Crawls GitHub to find new activities and triggers
help Help about any command
init Initialize the database in a new location
query Run a query against the database
stats Get statistics from the database

Flags:
--db string The path to the database (required)
-h, --help help for fdio
--version version for fdio

Use "fdio [command] --help" for more information about a command.
```

### Crawl

```text
Crawls GitHub to find new activities and triggers

Usage:
fdio crawl [flags]

Flags:
-h, --help help for crawl
--timeout float The number of hours between now and the last repo update
--type string The type to look for, either trigger or activity (required)

Global Flags:
--db string The path to the database (required)
```

_The crawl command will create a `.crawl` file which lists the last date/time this command started_

### Init

```text
Initialize the database in a new location

Usage:
fdio init [flags]

Flags:
-h, --help help for init

Global Flags:
--db string The path to the database (required)
```

### Query

> With this command you can run any arbitrary query against the database, so do this at your own risk

```text
Run a query against the database

Usage:
fdio query [flags]

Flags:
-h, --help help for query
-q, --query string The database query you want to run

Global Flags:
--db string The path to the database (required)
```

### Stats

```text
Get statistics from the database

Usage:
fdio stats [flags]

Flags:
-h, --help help for stats

Global Flags:
--db string The path to the database (required)
```