Skip to content

Allow basic string-functions to be called by CLI extensions #2593

@kwiatekus

Description

@kwiatekus

Description

Add templating functions (inspired from helm, i.e trim, replace, trimSuffix, etc) to the core cli, so that those can be called in the extension definition just like toArray, toJson and others are called.

Reasons

Ability to perform basic string transformations as part of CLI extension would add a lot of flexibility in interpreting user provided input.
For example, using a replace('.', '') transformation would allow us to interpret user provided python version when creating function CR via CLI

kyma function create python test -v 3.12

Attachments

https://github.com/kyma-project/cli/blob/main/internal/extensions/actions/common/template.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensibilitykind/featureCategorizes issue or PR as related to a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions