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
- Host: GitHub
- URL: https://github.com/retgits/fdio
- Owner: retgits
- License: mit
- Created: 2018-05-29T21:45:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T21:22:22.000Z (over 5 years ago)
- Last Synced: 2025-04-23T19:15:11.029Z (6 months ago)
- Topics: flogo, flogo-dot-io, tools
- Language: Go
- Homepage:
- Size: 4.65 MB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 websiteUsage:
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 databaseFlags:
--db string The path to the database (required)
-h, --help help for fdio
--version version for fdioUse "fdio [command] --help" for more information about a command.
```### Crawl
```text
Crawls GitHub to find new activities and triggersUsage:
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 locationUsage:
fdio init [flags]Flags:
-h, --help help for initGlobal 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 databaseUsage:
fdio query [flags]Flags:
-h, --help help for query
-q, --query string The database query you want to runGlobal Flags:
--db string The path to the database (required)
```### Stats
```text
Get statistics from the databaseUsage:
fdio stats [flags]Flags:
-h, --help help for statsGlobal Flags:
--db string The path to the database (required)
```