Skip to content

retgits/fdio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and the 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

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

You can create a binary using the install command

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

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

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

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

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

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

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)