cli

package
v0.0.0-...-06cc741 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find[T any](s []*T, filter func(i *T) bool) *T

func ReadYAMLFile

func ReadYAMLFile[T any](path string) (T, error)

func Section

func Section() table.Table

Section is a table with no column headers. the main purpose of this is to align values when printing, so they are on the same level. here's an example: what we don't want:

ID: 0198fb5f-e59e-7794-87f9-e34bd32a0e1b
Name: TestChunk
Description: this is a description
Tags: tag1,tag2

what we want:

ID:            0198fb5f-e59e-7794-87f9-e34bd32a0e1b
Name:          TestChunk
Description:   this is a description
Tags:          tag1,tag2

func WriteYAMLFile

func WriteYAMLFile[T any](content T, path string) error

Types

type Context

type Context struct {
	Logger         *slog.Logger
	Config         state.Config
	State          state.Data
	Client         chunkv1alpha1.ChunkServiceClient
	InstanceClient instancev1alpha1.InstanceServiceClient
	UserClient     userv1alpha1.UserServiceClient
	Auth           auth.Service
}

Directories

Path Synopsis
cmd
run

Jump to

Keyboard shortcuts

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