forked from toolshed/abra
refactor: use new internal arg failure func
This commit is contained in:
@ -2,9 +2,11 @@ package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
|
||||
"coopcloud.tech/abra/cli/internal"
|
||||
"coopcloud.tech/abra/client"
|
||||
"github.com/docker/docker/api/types"
|
||||
"github.com/docker/docker/api/types/swarm"
|
||||
@ -26,7 +28,7 @@ later for more advanced use cases.
|
||||
Action: func(c *cli.Context) error {
|
||||
host := c.Args().First()
|
||||
if host == "" {
|
||||
return cli.ShowSubcommandHelp(c)
|
||||
internal.ShowSubcommandHelpAndError(c, errors.New("no host provided"))
|
||||
}
|
||||
|
||||
cl, err := client.NewClientWithContext(host)
|
||||
|
Reference in New Issue
Block a user