repo-manager/functions/goto.zsh
2024-10-07 18:35:43 -07:00

12 lines
240 B
Bash

repo_goto() {
if [ -z "$1" ]; then
echo "Error: Repository path is required"
return 1
fi
cleaned=$(clean_repo_path "$1")
output_path="$REPO_BASE_DIR/$cleaned"
suffix=".git"
post_repo_goto "${output_path%"$suffix"}"
}