Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

create environment variables from text files

Project description

Install

$ [sudo] pip install export-file-cli

Features

  • create environment variables from text files - filename as variable name, content as value
  • ignore not existing and empty files

Usage

usage: scripts/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

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
export-file-cli-0.0.1.tar.gz (1.4 kB) Copy SHA256 hash SHA256 Source None Jun 3, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page