A plugin for lemniscat to transform files
Project description
lemniscat.plugin.filetransform
A plugin to transform one or more files into a lemniscat workflow
Description
This plugin allows you to transform one or more files into a lemniscat workflow. This plugin replace all attributes in the file by the value of the variables in the lemniscat runtime.
For example, if you have a file config.json
with the following content:
{
"url": "",
"port": ""
}
and you have the following variables in your lemniscat workflow:
- url: "http://localhost"
- port: "8080"
the plugin will transform the file into:
{
"url": "http://localhost",
"port": "8080"
}
Usage
Pre-requisites
In order to use this plugin, you need to add plugin into the required section of your manifest file.
requirements:
- name: lemniscat.plugin.filetransform
version: 0.2.0
Transform json file with variables
- task: filetransform
displayName: 'set json file'
steps:
- run
parameters:
folderPath: ${{ filepath }}
fileType: json
targetFiles: "*.json"
Transform yaml file with variables
- task: filetransform
displayName: 'set yaml file'
steps:
- run
parameters:
folderPath: ${{ filepath }}
fileType: yaml
targetFiles: "*.yml"
Inputs
Parameters
folderPath
: The path of the folder where the files to transform are locatedfileType
: The type of the file to transform. It can bejson
oryaml
targetFiles
: The pattern of the files to transform. It can be a single file or a pattern like*.json
or*.yml
Outputs
No outputs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lemniscat_plugin_filetransform-0.2.2.tar.gz
.
File metadata
- Download URL: lemniscat_plugin_filetransform-0.2.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f825a3aa7207a6b260aecdd5a4aee530aca477983ba034e5a3386dafa85e5faa |
|
MD5 | 068c30f646286843b82f3e100c23ae2e |
|
BLAKE2b-256 | ce3dec671a7cd025f755d6ead43cb19f4958cc504a63112859d8ec013ed057e5 |
File details
Details for the file lemniscat.plugin.filetransform-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: lemniscat.plugin.filetransform-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac428b6e5355a990bcebb61d676fbb0047dd8468cd63d636aad362818fbedbc4 |
|
MD5 | 49748333e0d890d20a359f7cb477620f |
|
BLAKE2b-256 | d0d3c9fb046e8d3da1a9c80aec7d41fb1fc155c052e900b5bfb114db039f4769 |