command
Version:
v0.0.0-...-0cedff7
Opens a new window with list of versions in this module.
Published: Oct 19, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
A simple go server for single commands.
Usage:
$ go run server.go PORT 'COMMAND'
- variables are indicated with {NAME}
Example usage:
$ go run server.go 9900 'echo Someone said <{string}>'
- the server is then called from URL http://localhost:9900?string=Hello%20world
Output example:
$ curl http://localhost:9900?string='Hello%20world'
result: Someone said <Hello world>
Security notice
Use at your own risk.. Be aware of injection risks for certain commands.
TODO
- Call with client's local files (send as POST request)
- Piping?
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.