File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ See [Installation](./docs/installation.md) and [Getting Started](./docs/getting-
38
38
- Local and user-wide package installation
39
39
- Configure (optionally) exactly which directories are used for completions, binaries, or man pages
40
40
- Works with essentially all popular Bash projects out of the box
41
- - 220 + Tests
41
+ - 240 + Tests
42
42
43
43
## Alternatives Comparison
44
44
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ do-remove() {
51
51
local ref=" $REPLY4 "
52
52
53
53
if [ -n " $ref " ]; then
54
- die " Refs must be omitted when upgrading packages. Remove ref '@$ref '"
54
+ die " Refs must be omitted when removing packages. Remove ref '@$ref '"
55
55
fi
56
56
57
57
if [ -d " $BPM_PACKAGES_PATH /$site /$package " ]; then
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ util.extract_data_from_input() {
79
79
site=" github.com"
80
80
package=" $repoSpec "
81
81
else
82
- die " Invalid repository '$repoSpec '"
82
+ die " Package '$repoSpec ' does not appear to be formatted correctly "
83
83
fi
84
84
85
85
if [[ " $package " == * @* ]]; then
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ load 'util/init.sh'
28
28
assert_line -n 0 -p " Cannot install packages owned by username 'local' because that conflicts with linked packages"
29
29
}
30
30
31
+ # TODO: do for link
31
32
@test " fails when input is an absolute path to a directory" {
32
33
local site=' github.com'
33
34
local pkg=' username/main'
Original file line number Diff line number Diff line change @@ -194,5 +194,5 @@ load 'util/init.sh'
194
194
run do-upgrade " $pkg @v0.1.0"
195
195
196
196
assert_failure
197
- assert_line -p " Refs must be omitted when upgrading packages. Remove ref '@v0.1.0'"
197
+ assert_line -p " Refs must be omitted when removing packages. Remove ref '@v0.1.0'"
198
198
}
Original file line number Diff line number Diff line change @@ -166,3 +166,10 @@ load 'util/init.sh'
166
166
assert_failure
167
167
assert_line -p " Directory specified with file protocol must have at least one parent directory"
168
168
}
169
+
170
+ @test " errors with friendly message if format is not proper" {
171
+ run util.extract_data_from_input ' UwU'
172
+
173
+ assert_failure
174
+ assert_line -p " Package 'UwU' does not appear to be formatted correctly"
175
+ }
You can’t perform that action at this time.
0 commit comments