Project

General

Profile

Actions

User story #26507

open

Add a CLI to the template module

Added by Alexis Mousset 21 days ago. Updated 21 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Module - templates
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No

Description

Currently, it can only communicate with CFEngine through the custom promise type protocol.

We also want to be able to compute templates from a CLI for tests and development, like for example we do with the system-updates module.

Library

To stay consistent with other Rudder CLI, we should use clap with the derive-based interface.

Interface

The general behavior is to take:

  • A source template
  • A source data file in JSON
  • A destination path
  • A template engine (mustache or minijinja, minijinja being the default)

And to produce the destination file.

Actions #1

Updated by Alexis Mousset 21 days ago

  • Subject changed from Add a CLI to the module to Add a CLI to the template module
  • Description updated (diff)
Actions

Also available in: Atom PDF