Skip to content

(feature) Allow cli tool to use retriever other than fileretriever #3876

@DeamonDev

Description

@DeamonDev

Requirements

Currently pkg/cli tool is capable only to use local file while performing evaluation of flag(s). This is hardcoded as follows

func (e evaluate) Evaluate() (map[string]model.RawVarResult, error) {
	c := ffclient.Config{
		PollingInterval:       10 * time.Minute,
		DisableNotifierOnInit: true,
		Context:               context.Background(),
		Retriever:             &fileretriever.Retriever{Path: e.config},
		FileFormat:            e.fileFormat,
	}

I propose to expand the capability of this tool to support at least httpretriever. Ideally I think we should support each retriever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp2Medium priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions