Commit 4925106 1 parent 5fbb406 commit 4925106 Copy full SHA for 4925106
File tree 8 files changed +29
-10
lines changed
8 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 67
67
cli --version | -v
68
68
69
69
Commands:
70
- connect Connect to the metaverse
70
+ connect Connect to the metaverse
71
71
72
72
73
73
84
84
cli --version | -v
85
85
86
86
Commands:
87
- connect Connect to the metaverse
87
+ connect Connect to the metaverse
88
88
89
89
Options:
90
90
--help, -h
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ args: none
60
60
deps :
61
61
- ${deps[git]} = /usr/bin/git
62
62
- ${deps[http_client]} = /usr/bin/curl
63
- - ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.3.0 /bin/ruby
63
+ - ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.3.6 /bin/ruby
64
64
65
65
66
66
` ` ` `
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ commands:
31
31
dependencies :
32
32
- git
33
33
- curl
34
- - shmurl
34
+ - dos
35
+ - netscape
35
36
36
37
- name : upload
37
38
help : Upload something
@@ -40,6 +41,7 @@ commands:
40
41
# The message can use colors from the colors library (bashly add colors).
41
42
dependencies :
42
43
mini-docker : install with $(green gem install mini-docker)
44
+ multi-docker : install with $(blue gem install multi-docker)
43
45
docker : visit https://docker.com for more information
44
46
` ` ` `
45
47
@@ -50,7 +52,8 @@ commands:
50
52
# ## `$ ./cli download`
51
53
52
54
` ` ` ` shell
53
- missing dependency : shmurl
55
+ missing dependency : dos
56
+ missing dependency : netscape
54
57
55
58
56
59
` ` ` `
@@ -61,6 +64,10 @@ missing dependency: shmurl
61
64
missing dependency : mini-docker
62
65
install with gem install mini-docker
63
66
67
+ missing dependency : multi-docker
68
+ install with gem install multi-docker
69
+
70
+
64
71
65
72
````
66
73
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ commands:
12
12
dependencies :
13
13
- git
14
14
- curl
15
- - shmurl
15
+ - dos
16
+ - netscape
16
17
17
18
- name : upload
18
19
help : Upload something
@@ -21,4 +22,5 @@ commands:
21
22
# The message can use colors from the colors library (bashly add colors).
22
23
dependencies :
23
24
mini-docker : install with $(green gem install mini-docker)
25
+ multi-docker : install with $(blue gem install multi-docker)
24
26
docker : visit https://docker.com for more information
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ ISSUE TRACKER
102
102
AUTHORS
103
103
Lana Lang.
104
104
105
- Version 0.1.0 August 2024 download(1)
105
+ Version 0.1.0 December 2024 download(1)
106
106
107
107
108
108
````
Original file line number Diff line number Diff line change 1
1
if dependencies.any?
2
2
= view_marker
3
3
4
+ > missing_deps=
4
5
dependencies.each do |dependency|
5
6
= dependency.render :filter
6
7
end
8
+
9
+ > if [[ -n $missing_deps ]]; then
10
+ > exit 1
11
+ > fi
7
12
end
Original file line number Diff line number Diff line change 3
3
> if ! command -v {{ commands.join(' ') }} >/dev/null 2>&1; then
4
4
> printf "{{ strings[:missing_dependency] % { dependency: name } }}\n" >&2
5
5
if help
6
- > printf "%s\n" "{{ help.sanitize_for_print }}" >&2
6
+ > printf "%s\n\n " "{{ help.sanitize_for_print }}" >&2
7
7
end
8
- > exit 1
8
+ > missing_deps= 1
9
9
if Settings.enabled? :deps_array
10
10
> else
11
11
> deps['{{ label }}']="$(command -v {{ commands.join(' ') }} | head -n1)"
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ created src/upload_command.sh
7
7
created ./cli
8
8
run ./cli --help to test your bash script
9
9
+ ./cli download
10
- missing dependency: shmurl
10
+ missing dependency: dos
11
+ missing dependency: netscape
11
12
+ ./cli upload
12
13
missing dependency: mini-docker
13
14
install with gem install mini-docker
15
+
16
+ missing dependency: multi-docker
17
+ install with gem install multi-docker
18
+
You can’t perform that action at this time.
0 commit comments