1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

rc: autogenerate and tidy the docs and commands

* Rename rc/pid -> core/pid
  * Sort the output of `rc list`
  * Make a script to autogenerate the docs
  * Tidy docs
This commit is contained in:
Nick Craig-Wood
2018-04-23 20:44:44 +01:00
parent 21a10e58c9
commit 9ab2521ef2
7 changed files with 90 additions and 35 deletions

View File

@@ -36,7 +36,7 @@ This lists all the registered remote control commands as a JSON map in
the commands response.`,
})
Add(Call{
Path: "rc/pid",
Path: "core/pid",
Fn: rcPid,
Title: "Return PID of current process",
Help: `
@@ -46,7 +46,7 @@ Useful for stopping rclone process.`,
Add(Call{
Path: "core/memstats",
Fn: rcMemStats,
Title: "Returns the memory statistics of the running program",
Title: "Returns the memory statistics",
Help: `
This returns the memory statistics of the running program. What the values mean
are explained in the go docs: https://golang.org/pkg/runtime/#MemStats