Merge pull request #10384 from filecoin-project/fix/hide-set-worker-cmd

fix: cli: Hide `lotus-worker set` command
This commit is contained in:
Phi-rjan 2023-03-05 12:30:51 +01:00 committed by GitHub
commit 6c0a2feade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -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",
@ -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

View File

@ -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
@ -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: