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

fix whitespace

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