denv

command module
v0.0.5-a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2015 License: MIT Imports: 4 Imported by: 0

README

denv

Build Status

Installs a way to manage your development environments

Really this is a just a sample go project that will let you switch between your vim environments

Installation

You can copy the contents of the scripts/install.py file and run it to install denv into /usr/local/bin like so

./scripts/install.py

Or do it manually by going to the releases page and download the denv artifact

https://github.com/buckhx/denv/releases/latest 

Usage

Let's start out by listing the current denvs

denv ls

You probably won't see anything, so why don't we download some denvs

dev pull https://github.com/buckhx/template-denv.git

If you ls again, you should see some stuff Now let's turn one of these bad boys on

denv activate python

Actually, let's not

denv deactivate

Really I want to save my current environment to a new denv

denv snapshot newdenv

And push all my denvs to a remote server (passphrase required) All the denvs are managed via get, so feel free to create a fork of the template to push to. If you have contributions to the template-denv, just shoot over a PR

denv push https://github.com/YOURNAMEHERE/denvs

Log on from a different VM or computer and pull what you just put up there

denv pull https://github.com/buckhx/somepath

Back on the same page again!

denv ls
denv activate newdenv

Development

Resources

Denv requires a few static assets for sensible defaults. In order to accomodate this as well as not requiring Denv to have to depend on static paths, resources are included by generating them via the scripts/include.go routine. This should be a pre-build step and in go >= 1.4 is included via go generate. Older versions should run go run scripts/include.go before building to embed the assets. If a resource is changed (settings.yml) without running include.go beforehand, the changes will not take.

###DenvInfo

Maintains state

###DenvHome

Home dir for Denv to live in. Generally a hidden path in the users $HOME

###DenvIgnore

Do not keep file handles that match these patterns Similar to a .gitignore file

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL