Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
contributor-workflow: use long command arguments
Browse files Browse the repository at this point in the history
Improve the scripts clarity by using long arguments for all commands.
  • Loading branch information
slack-coder authored and cloudhead committed Aug 11, 2022
1 parent c045399 commit eb13552
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/contributor-workflow-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ rad() {

echo >&2
echo "▒ rad $cmd $@" >&2
cargo run -q -p rad -- $cmd "$@"
cargo run --quiet --package rad -- $cmd "$@"
}

banner() {
Expand All @@ -59,8 +59,8 @@ banner() {

BASE=$(pwd)

rm -rf tmp/
mkdir -p tmp/root
rm --recursive --force tmp/
mkdir --parents tmp/root

###################
banner "MAINTAINER"
Expand All @@ -70,7 +70,7 @@ rad auth --init --name cloudhead --passphrase cloudhead
MAINTAINER=$(rad self --profile)

# Create git repo
mkdir -p $BASE/tmp/maintainer/acme
mkdir --parents $BASE/tmp/maintainer/acme
cd $BASE/tmp/maintainer/acme
# Setup project seed config.
echo "ACME" > README
Expand All @@ -83,9 +83,9 @@ cat << EOF > Radicle.toml
EOF

# Create repo and initial commit.
git init -b master
git init --initial-branch master
git add .
git commit -m "Initial commit" --no-gpg-sign
git commit --message "Initial commit" --no-gpg-sign

# Initialize
rad init --name acme --description 'Acme Monorepo' --no-confirm
Expand All @@ -97,7 +97,7 @@ PROJECT=$(rad inspect)
banner "CONTRIBUTOR"
####################

mkdir -p $BASE/tmp/contributor
mkdir --parents $BASE/tmp/contributor
cd $BASE/tmp/contributor

rad auth --init --name scooby --passphrase scooby
Expand All @@ -113,7 +113,7 @@ cd acme
echo >> README
echo "Acme is such a great company!" >> README
git add README
git commit -m "Update README" --no-gpg-sign
git commit --message "Update README" --no-gpg-sign

# Push commit to monorepo
# (rad-push)
Expand Down

0 comments on commit eb13552

Please sign in to comment.