* Add boundary ferry command (#4462) * Add boundary ferry status (#4463) * Add sending auth token automatically to ferry daemon (#4465) * Hide ferry cmds, background error msgs, and dont retry background add-token requests (#4571)
28 lines
654 B
Go
28 lines
654 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build amd64 || arm64
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/hashicorp/boundary/internal/cmd/base"
|
|
"github.com/hashicorp/boundary/internal/cmd/commands/ferry"
|
|
"github.com/mitchellh/cli"
|
|
)
|
|
|
|
func init() {
|
|
extraCommandsFuncs = append(extraCommandsFuncs, func(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
|
|
Commands["ferry"] = func() (cli.Command, error) {
|
|
return &ferry.FerryCommand{
|
|
Command: base.NewCommand(ui),
|
|
}, nil
|
|
}
|
|
Commands["ferry status"] = func() (cli.Command, error) {
|
|
return &ferry.StatusCommand{
|
|
Command: base.NewCommand(ui),
|
|
}, nil
|
|
}
|
|
})
|
|
}
|