evaluate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package evaluate implements the command that evaluates a feature flag for a given context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelpVars added in v0.2.0

func HelpVars() kong.Vars

HelpVars returns the kong interpolation variables used by Cmd help tags.

func Run added in v0.2.0

func Run(ctx context.Context, args []string, streams *helper.Streams) error

Run parses args against Cmd and executes flag evaluation with injected context and output streams.

Types

type Cmd added in v0.2.0

type Cmd struct {
	Headers        []string `help:"${helpEvalHeader}"  name:"header"             sep:"none"`
	Columns        []string `help:"${helpEvalColumn}"  name:"column"             sep:"none"`
	Format         string   `default:"yaml"            help:"${helpEvalFormat}"  name:"format"       short:"f"`
	Kind           string   `default:"file"            help:"${helpEvalKind}"    name:"kind"         short:"k"`
	Config         string   `help:"${helpEvalConfig}"  hidden:""                 name:"config"       short:"c"`
	Path           string   `help:"${helpEvalPath}"    name:"path"               short:"p"`
	AuthToken      string   `help:"${helpEvalAuth}"    name:"auth-token"`
	GithubToken    string   `help:"${helpEvalGHToken}" hidden:""                 name:"github-token"`
	RepositorySlug string   `help:"${helpEvalRepo}"    name:"repository-slug"`
	Branch         string   `help:"${helpEvalBranch}"  name:"branch"`
	BaseURL        string   `help:"${helpEvalBaseURL}" name:"base-url"`
	Bucket         string   `help:"${helpEvalBucket}"  name:"bucket"`
	Item           string   `help:"${helpEvalItem}"    name:"item"`
	URL            string   `help:"${helpEvalURL}"     name:"url"`
	Method         string   `default:"GET"             help:"${helpEvalMethod}"  name:"method"`
	Body           string   `help:"${helpEvalBody}"    name:"body"`
	EvalFlag       string   `help:"${helpEvalFlag}"    name:"flag"`
	EvalCtx        string   `default:"{}"              help:"${helpEvalCtx}"     name:"ctx"`
	Object         string   `help:"${helpEvalObject}"  name:"object"`
	Namespace      string   `default:"default"         help:"${helpEvalNS}"      name:"namespace"`
	ConfigMap      string   `help:"${helpEvalCM}"      name:"config-map"`
	Key            string   `help:"${helpEvalKey}"     name:"key"`
	URI            string   `help:"${helpEvalURI}"     name:"uri"`
	Database       string   `help:"${helpEvalDB}"      name:"database"`
	Collection     string   `help:"${helpEvalColl}"    name:"collection"`
	Container      string   `help:"${helpEvalCont}"    name:"container"`
	AccountName    string   `help:"${helpEvalAcct}"    name:"account-name"`
	AccountKey     string   `help:"${helpEvalAcctKey}" name:"account-key"`
	Table          string   `help:"${helpEvalTable}"   name:"table"`
	Timeout        int64    `default:"0"               help:"${helpEvalTimeout}" name:"timeout"`
	CheckMode      bool     `help:"${helpEvalCheck}"   name:"check-mode"`
}

Cmd evaluates feature flags based on configuration and context.

func (*Cmd) Help added in v0.2.0

func (*Cmd) Help() string

Help returns the detailed examples and description of evaluate for kong's help output.

func (*Cmd) Run added in v0.2.0

func (c *Cmd) Run(ctx context.Context, streams *helper.Streams) error

Run executes the evaluate command with injected context and output streams.

Directories

Path Synopsis
Package retrieverconf defines the configuration of the retrievers and their serializable options.
Package retrieverconf defines the configuration of the retrievers and their serializable options.
init
Package init creates the retrievers from their configuration.
Package init creates the retrievers from their configuration.

Jump to

Keyboard shortcuts

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