rc: fix formatting of docs

This commit is contained in:
Nick Craig-Wood 2019-10-27 10:32:56 +00:00
parent 378a3f4133
commit 1868c77e16
5 changed files with 18 additions and 2 deletions

View File

@ -340,6 +340,7 @@ Authentication is required for this call.
### config/get: Get a remote in the config file. {#config/get}
Parameters:
- name - name of remote to get
See the [config dump command](/commands/rclone_config_dump/) command for more information on the above.
@ -482,6 +483,7 @@ If group is not provided then summed up stats for all groups will be
returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -523,8 +525,8 @@ This clears counters and errors for all stats or specific stats group if group
is provided.
Parameters
- group - name of the stats group (string)
```
### core/transferred: Returns stats about completed transfers. {#core/transferred}
@ -538,6 +540,7 @@ returned.
Note only the last 100 completed transfers are returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -561,6 +564,7 @@ Returns the following values:
### core/version: Shows the current version of rclone and the go runtime. {#core/version}
This shows the current version of go and the go runtime
- version - rclone version, eg "v1.44"
- decomposed - version number as [major, minor, patch, subpatch]
- note patch and subpatch will be 999 for a git compiled version
@ -574,14 +578,17 @@ This shows the current version of go and the go runtime
Parameters - None
Results
- jobids - array of integer job ids
### job/status: Reads the status of the job ID {#job/status}
Parameters
- jobid - id of the job (integer)
Results
- finished - boolean
- duration - time in seconds that the job ran for
- endTime - time the job finished (eg "2018-10-26T18:50:20.528746884+01:00")
@ -596,6 +603,7 @@ Results
### job/stop: Stop the running job {#job/stop}
Parameters
- jobid - id of the job (integer)
### operations/about: Return the space used on the remote {#operations/about}

View File

@ -88,6 +88,7 @@ If group is not provided then summed up stats for all groups will be
returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -140,6 +141,7 @@ returned.
Note only the last 100 completed transfers are returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -192,8 +194,8 @@ This clears counters and errors for all stats or specific stats group if group
is provided.
Parameters
- group - name of the stats group (string)
` + "```" + `
`,
})
}

View File

@ -37,6 +37,7 @@ func init() {
AuthRequired: true,
Help: `
Parameters:
- name - name of remote to get
See the [config dump command](/commands/rclone_config_dump/) command for more information on the above.

View File

@ -168,6 +168,7 @@ func init() {
Title: "Shows the current version of rclone and the go runtime.",
Help: `
This shows the current version of go and the go runtime
- version - rclone version, eg "v1.44"
- decomposed - version number as [major, minor, patch, subpatch]
- note patch and subpatch will be 999 for a git compiled version

View File

@ -237,9 +237,11 @@ func init() {
Fn: rcJobStatus,
Title: "Reads the status of the job ID",
Help: `Parameters
- jobid - id of the job (integer)
Results
- finished - boolean
- duration - time in seconds that the job ran for
- endTime - time the job finished (eg "2018-10-26T18:50:20.528746884+01:00")
@ -282,6 +284,7 @@ func init() {
Help: `Parameters - None
Results
- jobids - array of integer job ids
`,
})
@ -300,6 +303,7 @@ func init() {
Fn: rcJobStop,
Title: "Stop the running job",
Help: `Parameters
- jobid - id of the job (integer)
`,
})