builder

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder[T any] struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder[T any](provider string, helpURL string) *Builder[T]

func (*Builder[T]) Build

func (b *Builder[T]) Build(rootCmd, apiCmd *cobra.Command)

Build builds the high-level API, must be run after BuildAPI as aliases might use API flags.

func (*Builder[T]) BuildAPI

func (b *Builder[T]) BuildAPI(
	rootCmd *cobra.Command,
	methodFilter func(m reflect.Method) bool,
	run func(cmd *cobra.Command, args []string),
)

BuildAPI builds the api command.

func (*Builder[T]) BuildArgsAndFlags added in v0.0.9

func (b *Builder[T]) BuildArgsAndFlags(cmd *cobra.Command, arg reflect.Type)

Directories

Path Synopsis
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL