Skip to content

Commit 898a2ac

Browse files
authored
Hide recovery and heartbeat sub commands. (#94)
1 parent 6e82d1a commit 898a2ac

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,18 @@ Example:
259259
260260
Resumes the replication process.
261261
262+
#### Request Body
263+
264+
- `fromFailure` (optional): Allows PML to resume from failed state
265+
266+
Example:
267+
268+
```json
269+
{
270+
"fromFailure": true
271+
}
272+
```
273+
262274
#### Response
263275
264276
- `ok`: Boolean indicating if the operation was successful.

main.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ var resetCmd = &cobra.Command{
259259

260260
//nolint:gochecknoglobals
261261
var resetRecoveryCmd = &cobra.Command{
262-
Use: "recovery",
263-
Short: "Reset recovery state",
262+
Use: "recovery",
263+
Hidden: true,
264+
Short: "Reset recovery state",
264265
RunE: func(cmd *cobra.Command, _ []string) error {
265266
targetURI, _ := cmd.InheritedFlags().GetString("target")
266267
if targetURI == "" {
@@ -297,8 +298,9 @@ var resetRecoveryCmd = &cobra.Command{
297298

298299
//nolint:gochecknoglobals
299300
var resetHeartbeatCmd = &cobra.Command{
300-
Use: "heartbeat",
301-
Short: "Reset heartbeat state",
301+
Use: "heartbeat",
302+
Hidden: true,
303+
Short: "Reset heartbeat state",
302304
RunE: func(cmd *cobra.Command, _ []string) error {
303305
targetURI, _ := cmd.InheritedFlags().GetString("target")
304306
if targetURI == "" {

0 commit comments

Comments
 (0)