You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/lib/commands/do-add.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ do-add() {
37
37
fi
38
38
39
39
if [ "$BPM_MODE"='local' ] &&((${#pkgs[@]}>0));then
40
-
die "Cannot specify individual packages for subcommand 'add' in local projects. Please edit your 'bpm.toml' and use either 'add --all' or 'remove --all'"
40
+
die "Subcommands must use the '--all' flag when a 'bpm.toml' file is present"
41
41
fi
42
42
43
43
if [[ "$BPM_MODE"== global &&"$flag_all"== yes ]];then
Copy file name to clipboardExpand all lines: pkg/lib/commands/do-remove.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ do-remove() {
29
29
fi
30
30
31
31
if [ "$BPM_MODE"=local ] &&((${#pkgs[@]}>0));then
32
-
die "Cannot specify individual packages for subcommand 'remove' in local projects. Please edit your 'bpm.toml' and use either 'add --all' or 'remove --all'"
32
+
die "Subcommands must use the '--all' flag when a 'bpm.toml' file is present"
Copy file name to clipboardExpand all lines: pkg/lib/commands/do-upgrade.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ do-upgrade() {
29
29
fi
30
30
31
31
if [ "$BPM_MODE"=local ] &&((${#pkgs[@]}>0));then
32
-
die "Cannot specify individual packages for subcommand 'upgrade' in local projects. Please edit your 'bpm.toml' and use either 'add --all' or 'remove --all'"
32
+
die "Subcommands must use the '--all' flag when a 'bpm.toml' file is present"
33
33
fi
34
34
35
35
if [[ $upgrade_bpm== yes &&"$flag_all"= yes ]];then
Copy file name to clipboardExpand all lines: tests/do-add.bats
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -345,5 +345,5 @@ load 'util/init.sh'
345
345
BPM_MODE='local' run do-add "$pkg1"
346
346
347
347
assert_failure
348
-
assert_line -p "Cannot specify individual packages for subcommand 'add' in local projects. Please edit your 'bpm.toml' and use either 'add --all' or 'remove --all'"
348
+
assert_line -p "Subcommands must use the '--all' flag when a 'bpm.toml' file is present"
Copy file name to clipboardExpand all lines: tests/do-remove.bats
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -255,5 +255,5 @@ load 'util/init.sh'
255
255
BPM_MODE='local' run do-remove "$pkg1"
256
256
257
257
assert_failure
258
-
assert_line -p "Cannot specify individual packages for subcommand 'remove' in local projects. Please edit your 'bpm.toml' and use either 'add --all' or 'remove --all'"
258
+
assert_line -p "Subcommands must use the '--all' flag when a 'bpm.toml' file is present"
Copy file name to clipboardExpand all lines: tests/do-upgrade.bats
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -219,5 +219,5 @@ load 'util/init.sh'
219
219
BPM_MODE='local' run do-upgrade "$pkg1"
220
220
221
221
assert_failure
222
-
assert_line -p "Cannot specify individual packages for subcommand 'upgrade' in local projects. Please edit your 'bpm.toml' and use either 'add --all' or 'remove --all'"
222
+
assert_line -p "Subcommands must use the '--all' flag when a 'bpm.toml' file is present"
0 commit comments