commandparser

package
v0.0.0-...-ec090b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 4 Imported by: 0

README

Command Parser

This activity provides your Flogo app the ability to read and parse a commandline string

Installation

flogo install github.com/retgits/flogo-components/activity/commandparser

Link for flogo web:

https://github.com/retgits/flogo-components/activity/commandparser

Schema

Inputs and Outputs:

{
"inputs": [
        {
            "name": "commandString",
            "type": "string",
            "required": true
        }
    ],
    "outputs": [
        {
            "name": "result",
            "type": "any"
        }
    ]
}

Inputs

Input Description
commandString The command line string

Ouputs

Output Description
result A map[string]string of the arguments

The commandString --type trigger --string "twitter" -dev would result in a map map[type:trigger string:twitter dev:true]

Documentation

Overview

Package commandparser implements activities to read and parse commandline arguments

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type MyActivity

type MyActivity struct {
	// contains filtered or unexported fields
}

MyActivity is a stub for your Activity implementation

func (*MyActivity) Eval

func (a *MyActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*MyActivity) Metadata

func (a *MyActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL