Created
December 13, 2018 11:54
-
-
Save GiladShoham/ae0a8aaafc627b811c3ba1d2acd99e0c to your computer and use it in GitHub Desktop.
import all components from a bit scope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scope=$1 | |
if [ -z "$scope" ] | |
then | |
echo "please provide scope" | |
else | |
components=$(bit ls ${scope} -j | jq -r '.[].id' | sed 's/\[Deprecated]//g') | |
num_components=$(echo "$components" | wc -w | xargs) | |
echo "found $num_components in scope $scope" | |
bit import $components | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment