Documentation
¶
Index ¶
- func FormatListSuccess(apps []types.App) (secondaryText []string)
- func LinkAppHeaderSection(ctx context.Context, clients *shared.ClientFactory)
- func LinkCommandRunE(ctx context.Context, clients *shared.ClientFactory, app *types.App) (err error)
- func LinkExistingApp(ctx context.Context, clients *shared.ClientFactory, app *types.App) (err error)
- func NewAddCommand(clients *shared.ClientFactory) *cobra.Command
- func NewCommand(clients *shared.ClientFactory) *cobra.Command
- func NewDeleteCommand(clients *shared.ClientFactory) *cobra.Command
- func NewLinkCommand(clients *shared.ClientFactory) *cobra.Command
- func NewListCommand(clients *shared.ClientFactory) *cobra.Command
- func NewSettingsCommand(clients *shared.ClientFactory) *cobra.Command
- func NewUninstallCommand(clients *shared.ClientFactory) *cobra.Command
- func NewUnlinkCommand(clients *shared.ClientFactory) *cobra.Command
- func RunAddCommand(ctx context.Context, clients *shared.ClientFactory, ...) (context.Context, types.InstallState, types.App, error)
- func RunDeleteCommand(ctx context.Context, clients *shared.ClientFactory, cmd *cobra.Command, ...) (types.App, error)
- func RunUninstallCommand(ctx context.Context, clients *shared.ClientFactory, cmd *cobra.Command, ...) (types.App, error)
- func UnlinkCommandRunE(ctx context.Context, clients *shared.ClientFactory, cmd *cobra.Command, ...) (types.App, error)
- type AppMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatListSuccess ¶
FormatListSuccess formats details about the list of project apps
func LinkAppHeaderSection ¶
func LinkAppHeaderSection(ctx context.Context, clients *shared.ClientFactory)
LinkAppHeaderSection displays a section explaining how to find existing apps.
func LinkCommandRunE ¶
func LinkCommandRunE(ctx context.Context, clients *shared.ClientFactory, app *types.App) (err error)
LinkCommandRunE saves details about the provided application
func LinkExistingApp ¶
func LinkExistingApp(ctx context.Context, clients *shared.ClientFactory, app *types.App) (err error)
LinkExistingApp resolves app details, validates the app, and saves it to the project. It produces no output — callers handle their own display.
func NewAddCommand ¶
func NewAddCommand(clients *shared.ClientFactory) *cobra.Command
NewAddCommand returns a new Cobra command
func NewCommand ¶
func NewCommand(clients *shared.ClientFactory) *cobra.Command
NewCommand returns a new Cobra command for apps
func NewDeleteCommand ¶
func NewDeleteCommand(clients *shared.ClientFactory) *cobra.Command
NewDeleteCommand returns a new Cobra command
func NewLinkCommand ¶
func NewLinkCommand(clients *shared.ClientFactory) *cobra.Command
NewLinkCommand returns a new Cobra command for link
func NewListCommand ¶
func NewListCommand(clients *shared.ClientFactory) *cobra.Command
NewListCommand returns a new Cobra command
func NewSettingsCommand ¶
func NewSettingsCommand(clients *shared.ClientFactory) *cobra.Command
func NewUninstallCommand ¶
func NewUninstallCommand(clients *shared.ClientFactory) *cobra.Command
NewUninstallCommand returns a new Cobra command
func NewUnlinkCommand ¶
func NewUnlinkCommand(clients *shared.ClientFactory) *cobra.Command
NewUnlinkCommand returns a new Cobra command for unlinking apps
func RunAddCommand ¶
func RunAddCommand(ctx context.Context, clients *shared.ClientFactory, selection *prompts.SelectedApp, orgGrantWorkspaceID string) (context.Context, types.InstallState, types.App, error)
RunAddCommand executes the workspace install command, prints output, and returns any errors.
func RunDeleteCommand ¶
func RunDeleteCommand(ctx context.Context, clients *shared.ClientFactory, cmd *cobra.Command, args []string) (types.App, error)
RunDeleteCommand executes the workspace delete command, prints output, and returns any errors.
Types ¶
type AppMock ¶
AppMock implementation mocks for the app package
func NewAppCommandMock ¶
func NewAppCommandMock() *AppMock
NewAppCommandMock returns a mock of the Workspace prompts.
func (*AppMock) RunAddCommand ¶
func (m *AppMock) RunAddCommand(ctx context.Context, clients *shared.ClientFactory, selectedApp *prompts.SelectedApp, orgGrant string) (context.Context, types.InstallState, types.App, error)
RunAddCommand mocks the app add (install) command