-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Labels
extensibilitykind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
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
Labels
extensibilitykind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.