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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f6b0c339e8447d4457ef5e520080f79af44c17e1df69b456d8a5323c20bdfc |
|
MD5 | bd78271da630fd8ff0959e38fa530bf0 |
|
BLAKE2b-256 | 9badae1e40a5e911e0fde323044493ebc6918a7db3a9de7180534e194cd5a0e3 |
Close
Hashes for lemniscat.plugin.filetransform-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b6aed11c6304dce109e347d46c549bc278cd052de93da34dae1496aa8b633b |
|
MD5 | c27ddb8e366cbbec3d8628e349f350e2 |
|
BLAKE2b-256 | e0f9b595967cbe999eac75e596e028bb1927a3db014baa6837dcb7915acf6156 |