Commit 139874fe authored by Bruce Flynn's avatar Bruce Flynn
Browse files

fix whitespace

parent 4d9f9b33
......@@ -4,4 +4,4 @@ ver=$(git describe)
sha=$(git rev-parse HEAD)
dt="$(date +%Y-%m-%d)T$(date +%H:%M:%S)Z"
buildStr="v${ver} (${dt})"
go install -ldflags "-X 'main.buildStr=${buildStr}'"
go build -ldflags "-X 'main.buildStr=${buildStr}'"
......@@ -39,6 +39,7 @@ func main() {
pflag.Usage = func() {
fmt.Fprintf(os.Stderr, `%s [options]
A mini JSON API for performing SFTP commands.
Supported commands read from commands:
......@@ -47,13 +48,13 @@ Supported commands read from commands:
{"command": "GET", "args": {"source": <path>, "dest": <path>}}
{"command": "LISTDIR", "args": {"path": <path>}}
returns [{"name": "<filename>", "size": <bytes>, "mtime": <unixtime>}, ...]
{"command": "DELETE", "args": {"path": <path>}}
{"command": "DELETE", "args": {"path": <path>}}
Responses written to stdout:
{"status": "(ok|error|fail)", "message": "<err message>", "data": (""|??)}
where "data" is documented with the command.
where "data" is documented with the command.
Options:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment