|
|
@ -25,6 +25,10 @@ func (c *commandLock) Help() string { |
|
|
|
` |
|
|
|
} |
|
|
|
|
|
|
|
func (c *commandLock) IsResourceHeavy() bool { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
func (c *commandLock) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { |
|
|
|
|
|
|
|
commandEnv.locker.RequestLock(util.DetectedHostAddress()) |
|
|
@ -47,6 +51,10 @@ func (c *commandUnlock) Help() string { |
|
|
|
` |
|
|
|
} |
|
|
|
|
|
|
|
func (c *commandUnlock) IsResourceHeavy() bool { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
func (c *commandUnlock) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { |
|
|
|
|
|
|
|
commandEnv.locker.ReleaseLock() |
|
|
|