File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Master
4
4
5
+ ### Enhancements
6
+
7
+ - Fetching a list of versions that can be installed (` swiftenv install --list ` )
8
+ will now fetch an updated list of versions.
9
+
5
10
### Bug Fixes
6
11
7
12
- Prevent ` swiftenv install ` picking up on unrelated ` $URL ` environment
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ $ swiftenv install 3.0
26
26
You can list all versions of Swift:
27
27
28
28
``` shell
29
- $ swiftenv install --list --refresh
29
+ $ swiftenv install --list
30
30
```
31
31
32
32
You can also list all binary snapshots of Swift that you can install.
Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ get_version_list() {
251
251
CACHE_FILE=" $CACHE_DIR /versions-${platform} .txt"
252
252
253
253
if $refresh ; then
254
+ vlog " Updating version cache"
254
255
# FIXME: Add support for architecture to swiftenv api
255
256
mkdir -p $CACHE_DIR
256
257
curl -s -H ' Accept: text/plain' " https://swiftenv-api.fuller.li/versions?platform=$platform " > " $CACHE_FILE "
@@ -267,7 +268,7 @@ get_version_list() {
267
268
268
269
clean=true
269
270
list=false
270
- refresh=false
271
+ refresh=true
271
272
snapshots=false
272
273
build=auto
273
274
verbose=false
@@ -302,6 +303,7 @@ for args in "$@"; do
302
303
elif [ " $args " = " --no-refresh" ]; then
303
304
refresh=false
304
305
elif [ " $args " = " --complete" ]; then
306
+ refresh=false
305
307
completes=true
306
308
elif [ " $args " = " --build" ]; then
307
309
build=true
@@ -345,6 +347,8 @@ vlog() {
345
347
if $completes ; then
346
348
echo " --list"
347
349
echo " --list-snapshots"
350
+ echo " --refresh"
351
+ echo " --no-refresh"
348
352
echo " --verbose"
349
353
echo " --no-verbose"
350
354
echo " --verify"
Original file line number Diff line number Diff line change 4
4
swiftenv-install \- Install a version of Swift
5
5
6
6
.SH SYNOPSIS
7
- swiftenv install [\-\- verbose] [\-\- list] [\-\- list-snapshots] [\-\- [no\- ]build] [\-\- [no\- ]set\- global] [\-\- [no\- ]set\- local] [--no-clean] [\-\- [no\- ]user] <version>
7
+ swiftenv install [\-\- verbose] [\-\- list] [\-\- list-snapshots] [\-\- no \- refresh] [ \-\- [no\- ]build] [\-\- [no\- ]set\- global] [\-\- [no\- ]set\- local] [--no-clean] [\-\- [no\- ]user] <version>
8
8
9
9
.SH DESCRIPTION
10
10
@@ -27,9 +27,16 @@ Lists all the Swift releases that can be installed.
27
27
\-\- refresh
28
28
29
29
.RS
30
+ On by default.
30
31
When used in conjunction with \-\- list, fetches an updated information.
31
32
.RE
32
33
34
+ \-\- no\- refresh
35
+
36
+ .RS
37
+ Force using local version information with \-\- list.
38
+ .RE
39
+
33
40
\-\- list-snapshots
34
41
35
42
.RS
You can’t perform that action at this time.
0 commit comments