Skip to content

Console application for forwarding commands and arguments

Notifications You must be signed in to change notification settings

vivianvea/CommandForwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandForwarder

Console application for forwarding commands and arguments.

How to

Easily create a composite console application that forwards calls to other applications, along with arguments, through a JSON defintion.

{
  "verbs": [
    {
      "name": "myApp",
      "description": "description of the contents of this verb",
      "verbs": [
        {
          "name": "subVerb",
          "actions": [
            {
              "name": "action",
              "command": "path/to/application",
              "description": "description of what this command will do"
            }
          ]
        }
      ]
    },
    {
      "name": "otherApp",
      "command": "path/to/application"
    }
  ]
}

Usage:

CommandForwarder.exe -c path/to/config -a myApp subVerb action "arguments" "to" "forward"

Or (for Windows) create a batch file or similar like the following that's available in PATH:

:: myApp.bat

@echo off
CommandForwarder.exe -c path/to/config -a myApp %*

And use it as follows from everywhere:

myApp subVerb action "arguments" "to" "forward"

About

Console application for forwarding commands and arguments

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages