create environment variables from text files
Project description
Install
$ [sudo] pip install export-file
Features
- create environment variables from text files - filename as variable name, content as value
- ignore not existing and empty files
Usage
usage: export-file path ...
Examples
$ export-file description.txt keywords.txt
export DESCRIPTION="@accepts decorator to check arguments types"
export KEYWORDS="type decorator"
$ eval <<< export-file description.txt keywords.txt
$ echo $DESCRIPTION
repo description
find
files:
$ IFS=;find="$(find -H . -type f -name "*.txt")"
$ [[ -n "$find ]] && { IFS=$'\n';set $find; eval "$(export-file "$@")"; }
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
export-file-0.0.1.tar.gz
(1.5 kB
view details)
File details
Details for the file export-file-0.0.1.tar.gz
.
File metadata
- Download URL: export-file-0.0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e39a45362085ce243ba7d29994f35b0eb6d0bb06f48cd76f4b0fb332636de12a |
|
MD5 | 49e72782d9bddd0dde281ba240db2727 |
|
BLAKE2b-256 | 8f97c35f4c0cad69d42f77b6a1e3128e9500fc8cc94646be7b79810b7f947545 |