Crates.io | nu_plugin_template |
lib.rs | nu_plugin_template |
version | 0.99.0 |
source | src |
created_at | 2024-09-03 07:29:54.93928 |
updated_at | 2024-10-20 11:32:45.046786 |
description | Templating in Nushell, powered by TinyTemplate |
homepage | |
repository | https://codeberg.org/kaathewise/nugins |
max_upload_size | |
id | 1361423 |
size | 58,685 |
Simple string templating for Nushell, powered by TinyTemplate.
~> "Running task {name}
Processing files {{ for file in files -}}
{file} {{- if not @last}}, {{ endif }}
{{- endfor }}.
{{ if result.success -}}
Output: {result.output}
{{- else -}}
Failure!
{{- endif -}}"
| template {
name: check
files: [main.rs, util.rs, json.rs]
result: { success: true, output: "No errors found" }
}
Running task check
Processing files main.rs, util.rs, json.rs.
Output: No errors found
For the full syntax description, see the TinyTemplate docs.