Cradle helps you manage your local projects.
Install using Go:
go install github.com/gurleensethi/cradle@latestAdd the helper function to your shell's configuration file:
crdl() {
out=$(CRADLE_CMDOUT=1 cradle "$@" 3>&1 1>&2 2>&3)
if [[ $out == eval* ]]; then
eval "${out#eval}"
else
printf '%s' "$out"
fi
}Note: This configuration is required to enable directory switching functionality. Without it, you won't be able to change directories using Cradle.
To configure Cradle for Bash, append the helper script to your .bashrc:
curl -s https://raw.githubusercontent.com/gurleensethi/cradle/main/crdl.sh >> ~/.bashrcTo configure Cradle for Zsh, append the helper script to your .zshrc:
curl -s https://raw.githubusercontent.com/gurleensethi/cradle/main/crdl.sh >> ~/.zshrcAfter adding the script, remember to restart your terminal or source the configuration file to apply the changes.

