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

Commit 61e69ce

Browse files
slack-codercloudhead
authored andcommitted
contributor-workflow: use long command arguments
Improve the scripts clarity by using long arguments for all commands.
1 parent a9a3778 commit 61e69ce

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stable
1+
1.62

scripts/contributor-workflow-setup.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ rad() {
4848

4949
echo >&2
5050
echo "▒ rad $cmd $@" >&2
51-
cargo run -q -p rad -- $cmd "$@"
51+
cargo run --quiet --package rad -- $cmd "$@"
5252
}
5353

5454
banner() {
@@ -59,8 +59,8 @@ banner() {
5959

6060
BASE=$(pwd)
6161

62-
rm -rf tmp/
63-
mkdir -p tmp/root
62+
rm --recursive --force tmp/
63+
mkdir --parents tmp/root
6464

6565
###################
6666
banner "MAINTAINER"
@@ -70,7 +70,7 @@ rad auth --init --name cloudhead --passphrase cloudhead
7070
MAINTAINER=$(rad self --profile)
7171

7272
# Create git repo
73-
mkdir -p $BASE/tmp/maintainer/acme
73+
mkdir --parents $BASE/tmp/maintainer/acme
7474
cd $BASE/tmp/maintainer/acme
7575
# Setup project seed config.
7676
echo "ACME" > README
@@ -83,9 +83,9 @@ cat << EOF > Radicle.toml
8383
EOF
8484

8585
# Create repo and initial commit.
86-
git init -b master
86+
git init --initial-branch master
8787
git add .
88-
git commit -m "Initial commit" --no-gpg-sign
88+
git commit --message "Initial commit" --no-gpg-sign
8989

9090
# Initialize
9191
rad init --name acme --description 'Acme Monorepo' --no-confirm
@@ -97,7 +97,7 @@ PROJECT=$(rad inspect)
9797
banner "CONTRIBUTOR"
9898
####################
9999

100-
mkdir -p $BASE/tmp/contributor
100+
mkdir --parents $BASE/tmp/contributor
101101
cd $BASE/tmp/contributor
102102

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

118118
# Push commit to monorepo
119119
# (rad-push)

0 commit comments

Comments
 (0)