Skip to content

Commit

Permalink
rename direnv_apply_dump -> direnv_load
Browse files Browse the repository at this point in the history
  • Loading branch information
timbertson committed Jan 8, 2014
1 parent d3c80fb commit a0dbaa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd_stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ source_up() {
fi
}
# Usage: direnv_apply_dump <command-generating-dump-output>
# e.g: direnv_apply_dump opam-env exec -- direnv dump
# Usage: direnv_load <command-generating-dump-output>
# e.g: direnv_load opam-env exec -- direnv dump
#
# Applies the environment generated by running <argv> as a
# command. This is useful for adopting the environment of a child
# process - cause that process to run "direnv dump" and then wrap
# the results with direnv_apply_dump.
# the results with direnv_load.
#
direnv_apply_dump() {
direnv_load() {
exports="$("$direnv" apply-dump <("$@"))"
if test "$?" -ne 0; then
exit 1
Expand Down
2 changes: 1 addition & 1 deletion test/scenarios/child-env/.envrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set -e
export PARENT_PRE=1
export REMOVE_ME=1
direnv_apply_dump bash -c 'export CHILD=1; unset REMOVE_ME; direnv dump'
direnv_load bash -c 'export CHILD=1; unset REMOVE_ME; direnv dump'
export PARENT_POST=1

0 comments on commit a0dbaa2

Please sign in to comment.