cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCLI

func BuildCLI(root *cobra.Command)

Types

type Backend

type Backend struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(
	config *config.Config, db *ent.Client,
	logger *zap.SugaredLogger, aiService ai.AiService, tableService table.TableService,
) *Backend

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(backend *Backend) *Handler

func (*Handler) Create

func (h *Handler) Create(cmd *cobra.Command, args []string) error

func (*Handler) Delete

func (h *Handler) Delete(cmd *cobra.Command, args []string) error

func (*Handler) Describe

func (h *Handler) Describe(cmd *cobra.Command, args []string) error

func (*Handler) Export

func (h *Handler) Export(cmd *cobra.Command, args []string) error

func (*Handler) Generate

func (h *Handler) Generate(cmd *cobra.Command, args []string) error

func (*Handler) Import

func (h *Handler) Import(cmd *cobra.Command, args []string) error

func (*Handler) List

func (h *Handler) List(cmd *cobra.Command, args []string) error

func (*Handler) Show

func (h *Handler) Show(cmd *cobra.Command, args []string) error

func (*Handler) Truncate

func (h *Handler) Truncate(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳