Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cli: Hide lotus-worker set command #10384

Merged
merged 1 commit into from
Mar 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmd/lotus-worker/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import (
)

var setCmd = &cli.Command{
Name: "set",
Usage: "Manage worker settings",
Name: "set",
Usage: "Manage worker settings",
Hidden: true,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "enabled",
Expand All @@ -20,6 +21,7 @@ var setCmd = &cli.Command{
},
},
Action: func(cctx *cli.Context) error {
fmt.Println("DEPRECATED: This command will be removed in the future")
api, closer, err := lcli.GetWorkerAPI(cctx)
if err != nil {
return err
Expand Down
14 changes: 0 additions & 14 deletions documentation/en/cli-lotus-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ COMMANDS:
stop Stop a running lotus worker
info Print worker info
storage manage sector storage
set Manage worker settings
resources Manage resource table overrides
tasks Manage task processing
help, h Shows a list of commands or help for one command
Expand Down Expand Up @@ -153,19 +152,6 @@ OPTIONS:

```

## lotus-worker set
```
NAME:
lotus-worker set - Manage worker settings

USAGE:
lotus-worker set [command options] [arguments...]

OPTIONS:
--enabled enable/disable new task processing (default: true)

```

## lotus-worker resources
```
NAME:
Expand Down