repo-manager/functions/goto.zsh

12 lines
240 B
Bash
Raw Normal View History

2024-10-08 01:35:43 +00:00
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"}"
}