tome-scripts 0.12.3

Turn directories of shell scripts into full-blown CLIs
Documentation
# SUMMARY: navigate to a directory within the ~/sandbox directory
root=$HOME/sandbox
if [ ! -d $root ]; then
    mkdir -p $root
fi

local target_path path_element
target_path="$root"
if [ "$1" == "--complete" ]; then
  shift
  run_completion=true
fi

for path_element in "$@"
do
  target_path="$target_path/$path_element"
done

if [ -z "$run_completion" ]; then
  cd $target_path
else
  ls $target_path
fi