cmd

package
v0.0.171 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeaturePromptsEvals = "enable_prompts_evals"
)

Feature flag constants

Variables

View Source
var (
	Version string = "dev"
	Commit  string = "dev"
	Date    string
)

Functions

func CheckFeatureFlag added in v0.0.169

func CheckFeatureFlag(cmd *cobra.Command, feature string, cmdFlagName string) bool

CheckFeatureFlag checks if a feature flag is enabled via command line or config and only writes to config if explicitly enabled

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetEnabledFeatures added in v0.0.169

func GetEnabledFeatures() []string

GetEnabledFeatures returns a list of all currently enabled feature flags

func IsAnyFeatureEnabled added in v0.0.169

func IsAnyFeatureEnabled() bool

IsAnyFeatureEnabled checks if any feature flags are enabled

func IsFeatureEnabled added in v0.0.169

func IsFeatureEnabled(feature string) bool

IsFeatureEnabled checks if a feature flag is enabled

func IsPromptsEvalsEnabled added in v0.0.169

func IsPromptsEvalsEnabled() bool

IsExperimentalEnabled checks if experimental features are enabled

func SetupFeatureFlags added in v0.0.169

func SetupFeatureFlags(rootCmd *cobra.Command)

SetupFeatureFlags initializes feature flag configuration and command line flags

func ShowNewProjectImport added in v0.0.56

func ShowNewProjectImport(ctx context.Context, logger logger.Logger, cmd *cobra.Command, apiUrl string, apikey string, projectId string, project *project.Project, dir string, isImport bool)

Types

type APIKeyList added in v0.0.90

type APIKeyList []apikey.APIKey

func (APIKeyList) SortedIterator added in v0.0.90

func (list APIKeyList) SortedIterator() func(yield func(key string, value apikey.APIKey) bool)

type Agent added in v0.0.20

type Agent struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

type InitProjectArgs

type InitProjectArgs struct {
	BaseURL           string
	Dir               string
	Token             string
	OrgId             string
	Name              string
	Description       string
	EnableWebhookAuth bool
	AuthType          string
	Provider          *templates.TemplateRules
	Agents            []project.AgentConfig
	Framework         string
}

type Log added in v0.0.140

type Log struct {
	ID        string    `json:"id"`
	Body      string    `json:"body"`
	Link      string    `json:"link"`
	Severity  string    `json:"severity"`
	Timestamp time.Time `json:"timestamp"`
}

type LogsResponse added in v0.0.140

type LogsResponse struct {
	Success bool  `json:"success"`
	Data    []Log `json:"data"`
}

type Resources added in v0.0.26

type Resources struct {
	Memory int64 `json:"memory,omitempty"`
	CPU    int64 `json:"cpu,omitempty"`
	Disk   int64 `json:"disk,omitempty"`
}

Jump to

Keyboard shortcuts

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