Hide lotus-worker set
command
Hide the `lotus-worker set` command and print that this command will be deprecated.
This commit is contained in:
parent
4588523de7
commit
51b645f8d0
@ -12,6 +12,7 @@ import (
|
|||||||
var setCmd = &cli.Command{
|
var setCmd = &cli.Command{
|
||||||
Name: "set",
|
Name: "set",
|
||||||
Usage: "Manage worker settings",
|
Usage: "Manage worker settings",
|
||||||
|
Hidden: true,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "enabled",
|
Name: "enabled",
|
||||||
@ -20,6 +21,7 @@ var setCmd = &cli.Command{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
|
fmt.Println("DEPRECATED: This command will be removed in the future")
|
||||||
api, closer, err := lcli.GetWorkerAPI(cctx)
|
api, closer, err := lcli.GetWorkerAPI(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -14,7 +14,6 @@ COMMANDS:
|
|||||||
stop Stop a running lotus worker
|
stop Stop a running lotus worker
|
||||||
info Print worker info
|
info Print worker info
|
||||||
storage manage sector storage
|
storage manage sector storage
|
||||||
set Manage worker settings
|
|
||||||
resources Manage resource table overrides
|
resources Manage resource table overrides
|
||||||
tasks Manage task processing
|
tasks Manage task processing
|
||||||
help, h Shows a list of commands or help for one command
|
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
|
## lotus-worker resources
|
||||||
```
|
```
|
||||||
NAME:
|
NAME:
|
||||||
|
Loading…
Reference in New Issue
Block a user