Skip to content

Generalize command service functionality away from powershell only #4

Open

Description

@bitsofinfo

There are several things that can be done to make this more of a generic "shell agnostic" wrapper around stateless-process-command-proxy

  1. Support configurable function in constructor to handle argument sanitization
  2. Support configurable function in constructor to permit modifcation of all arguments, i.e. for PS commands the PSCommandService auto prepends a "-" to all argument names
  3. Rename to CommandService, get rid of PS

Activity

  1. gkhatib commented on Mar 26, 2015

    @gkhatib

    Can this be used to run Powershell scripts, or is it just for commands ? Thanks.

  2. bitsofinfo commented on Mar 26, 2015

    @bitsofinfo
    OwnerAuthor

    Sure, but I suggest you just use https://github.com/bitsofinfo/stateful-process-command-proxy instead (the lower level module). Create your custom powershell script then invoke it via that. This project (powershell-command-executor) is for a registry of pre-defined commands, see the README for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions