mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6481 from sinsharat/update_timetolive_options
etcdctlv3: updated options for TIMETOLIVE
This commit is contained in:
commit
3da8c6512b
@ -328,10 +328,14 @@ LEASE REVOKE destroys a given lease, deleting all attached keys.
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### LEASE TIMETOLIVE \<leaseID\>
|
### LEASE TIMETOLIVE \<leaseID\> [options]
|
||||||
|
|
||||||
LEASE TIMETOLIVE retrieves the lease information with the given lease ID.
|
LEASE TIMETOLIVE retrieves the lease information with the given lease ID.
|
||||||
|
|
||||||
|
#### Options
|
||||||
|
|
||||||
|
- keys -- Get keys attached to this lease
|
||||||
|
|
||||||
#### Return value
|
#### Return value
|
||||||
|
|
||||||
- On success, prints lease information.
|
- On success, prints lease information.
|
||||||
|
@ -103,7 +103,7 @@ var timeToLiveKeys bool
|
|||||||
// NewLeaseTimeToLiveCommand returns the cobra command for "lease timetolive".
|
// NewLeaseTimeToLiveCommand returns the cobra command for "lease timetolive".
|
||||||
func NewLeaseTimeToLiveCommand() *cobra.Command {
|
func NewLeaseTimeToLiveCommand() *cobra.Command {
|
||||||
lc := &cobra.Command{
|
lc := &cobra.Command{
|
||||||
Use: "timetolive <leaseID>",
|
Use: "timetolive <leaseID> [options]",
|
||||||
Short: "Get lease information",
|
Short: "Get lease information",
|
||||||
|
|
||||||
Run: leaseTimeToLiveCommandFunc,
|
Run: leaseTimeToLiveCommandFunc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user