Skip to content

Instantly share code, notes, and snippets.

@maximianodev
Created February 16, 2023 15:00
Show Gist options
  • Save maximianodev/3c5d74004260c0d6e7772c9b344584f3 to your computer and use it in GitHub Desktop.
Save maximianodev/3c5d74004260c0d6e7772c9b344584f3 to your computer and use it in GitHub Desktop.
BASH - VTEX Workspace and Git automatization.
# Paste on ~/
# Run with bash ~./automatization.sh
#! usr/bin/bash
bold=$(tput bold)
echo "🌌 ${bold}VTEX: Workspace ?"
read workspace
echo "🌌 ${bold}GIT: Branch ?"
read git_branch
if [ -z "$workspace" ]
then
echo ""
else
vtex use $workspace
fi
if [ -z "$git_branch" ]
then
echo ""
else
git checkout -b $git_branch
fi
echo $workspace
echo $git_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment