diff options
Diffstat (limited to 'bos-namespaces.sh')
-rw-r--r-- | bos-namespaces.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bos-namespaces.sh b/bos-namespaces.sh index 02f3df2..d36b87e 100644 --- a/bos-namespaces.sh +++ b/bos-namespaces.sh @@ -112,3 +112,19 @@ function bos-namespaces/qualify-funcs() { return 0 } + +function bos-namespaces/namespace-open() { + bos-namespaces/push "$1" + bos-namespaces/save-funcs + + return 0 +} + +function bos-namespaces/namespace-close() { + local -a methods_list; bos-namespaces/list-new-funcs-into methods_list + bos-namespaces/qualify-funcs "${methods_list[@]}" + + bos-namespaces/pop + + return 0 +} |