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
Close
Hashes for lemniscat.plugin.filetransform-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6ebbf60c5c85ce3e71ed934f45368b7eff607b320a8c3431584237eff0c2036 |
|
MD5 | 20b566aad6682dd323c331fb030b59b8 |
|
BLAKE2b-256 | 8b88dc88844067844a3e90c4b53c37d421a1431d980e8fd020de73502696500c |
Close
Hashes for lemniscat.plugin.filetransform-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c816923c797662ac42d0c984ed241d65af1654a7ced668bdcfde136f4ab246 |
|
MD5 | d2c1237e4e795b6f4903ad293b5cb6c8 |
|
BLAKE2b-256 | 16e1caf2c763663e009ea08d80286762198da48a54861654aba2e7b4528b0976 |