Code Monkey home page Code Monkey logo

envset's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

moimikey

envset's Issues

Expand env variables

It would be useful to be able to expand variables:

[development]
PATH = $PATH:/node_modules/.bin

OR

[development]
PATH = ${PATH}:/node_modules/.bin

See npm-run-path as a way to implement this.

Plugin: Analyze properties and suggest moving to global

To make envset files less verbose and less error prone, check each environment properties and make sure they have different values, if more than one environments have the same properties and values suggest to either move them to global or else is an error.

[development]
NODE_USERNAME=goliatone
NODE_PASSWORD=secret1

[production]
NODE_USERNAME=goliatone
NODE_PASSWORD=secret2

It wold suggest:

NODE_USERNAME=goliatone

[development]
NODE_PASSWORD=secret1

[production]
NODE_PASSWORD=secret2

cli example

Update docs:

envset <environment> -- <command>:

envset spawns a new process, attaches variables defined for to the process, and executes

ENOENT: command not found

Handle error and give message explaining that the command was not found.

envset failed to execute provided command.
Ensure the following is a valid command.
slv docker-compose.tpl
{ Error: spawn slv ENOENT
    at exports._errnoException (util.js:1008:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
    at onErrorNT (internal/child_process.js:348:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:577:11)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn slv',
  path: 'slv',
  spawnargs: [ 'docker-compose.tpl' ] }

postuninstall

We should really think if we want to delete this... what if we are just doing an upgrade?

EACCES: suggest chmod file

If envset tries to execute a file without the right file perms it will throw this error:

{ [Error: spawn EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'spawn' }

suggest to user

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.