Skip to content

Use experiments in --expression flags. #4297

@tvandinther

Description

@tvandinther

Is your feature request related to a problem? Please describe.
I'd like to be able to try experiments fully which includes using them in flags which accept CUE expressions.

Describe the solution you'd like
For example, with the aliasv2 experiment I'd like to be able to run the following command:

$ cue eval test.cue -e 'self & {y: 2}'
predeclared identifier "self" requires @experiment(aliasv2):
    --expression:1:1

Describe alternatives you've considered
None identified.

Additional context
https://cuelang.slack.com/archives/C012UU8B72M/p1772789199811189

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions