Skip to content

Make function init command consistent with function create #1897

@kwiatekus

Description

@kwiatekus

Description

Adjust function init command to the latest changes in function create

Is:

kyma function init --runtime nodejs22
Functions files of runtime nodejs22 initialized to dir ...

Next steps:
* update output files in your favorite IDE
* create Function, for example:
  kyma function create nodejs22 --runtime nodejs22 --source handler.js --dependencies package.json

Should be

kyma function init --runtime nodejs (or kyma function init  nodejs )
Functions files of runtime nodejs initialized to dir ...

Next steps:
* update output files in your favorite IDE
* create Function, for example:
  kyma function create nodejs my-function --source handler.js --dependencies package.json

Reasons

Improve consistency and eliminate confusion in the hints displayed to the user after kyma init command invocation:

Acceptance Criteria

  • function init should either have subcommands nodejs and python, or accept those as --runtime flag
  • function init should not "reintroduce" versions that are included in runtime names
  • hints after function init are compatible with the function create

Related Issues
#1891

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions