Skip to content

Automatize schema version number in the CLI mustache template #176

@jeremnaf

Description

@jeremnaf

Component

Core Engine

Problem & Motivation

Regarding the CLI project. For the moment when generating a capability file, the schema version is hard coded in the mustache template. We have to find a way to synchronize it with the current schema version.

@eskenazit for information

Proposed Solution

  • Set this version as a variable in the template with a proper default value for the populate. Advantage: made at runtime (always the last schema) and can be overloaded with a CLI parameter if needed.

Alternative

  • automatic edit of the template file when the version of the naftiko-schema.json changed

Example

naftiko: "{{capabilityName}}"

Agent Context (optional)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions