mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 17:03:58 +08:00
run external commands client side
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -321,7 +321,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if client != nil {
|
if client != nil && !cmd.External {
|
||||||
log.Debug("Executing command via API")
|
log.Debug("Executing command via API")
|
||||||
res, err = client.Send(req)
|
res, err = client.Send(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user