export-file-0.0.1
توضیحات
create environment variables from text files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | export-file-0.0.1 |
| نام | export-file |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/looking-for-a-job/export-file |
| آدرس اینترنتی | https://pypi.org/project/export-file/ |
| مجوز | - |
### Install
```bash
$ [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
```bash
usage: export-file path ...
```
### Examples
```bash
$ 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 "$@")"; }
```
نحوه نصب
نصب پکیج whl export-file-0.0.1:
pip install export-file-0.0.1.whl
نصب پکیج tar.gz export-file-0.0.1:
pip install export-file-0.0.1.tar.gz