项目作者: andrelmlins

项目描述 :
Parser docker variables for javascript
高级语言: Shell
项目地址: git://github.com/andrelmlins/parser-docker-variables.git
创建时间: 2020-02-21T21:43:16Z
项目社区:https://github.com/andrelmlins/parser-docker-variables

开源协议:MIT License

下载


Parser Docker Variables

Parser Docker Variables for javascript

Install

with bpkg:

  1. $ bpkg install andrelmlins/parser-docker-variables -g

with Homebrew:

  1. $ brew install andrelmlins/parser-docker-variables

with curl:

  1. $ curl -L https://raw.github.com/andrelmlins/parser-docker-variables/master/parser-docker-variables.sh -o ~/bin/parser-docker-variables && chmod +x ~/bin/parser-docker-variables

with Antigen:

Add antigen bundle andrelmlins/parser-docker-variables to your .zshrc with your other antigen commands

With Zgen:

Add zgen load andrelmlins/parser-docker-variables to your .zshrc with your other zgen commands

Usage

Basic use:

  1. $ parser-docker-variables [options] [pattern]

with “pbcopy”:

  1. $ parser-docker-variables | pbcopy

with “echo file”:

  1. echo $(parser-docker-variables) >> env.js

Example

Docker variables

  1. API_URL="http://www.example.com"
  2. AUTH_TOKEN="xxxxxx"

Result

  1. window.apiUrl = "http://www.example.com";
  2. window.authToken = "xxxxxx";

Options

Name Description Usage
version Show version -v, --version
help Show help -h, --help

License

Parser Docker Variables is open source software licensed as MIT.