File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1212 os : [ ubuntu-latest, windows-latest, macos-latest ]
1313 # The versions should contain (at least) the lowest requirement
1414 # and a version that is more up to date.
15- toit-version : [ v2.0.0-alpha.144 , latest ]
15+ toit-version : [ v2.0.0-alpha.161 , latest ]
1616 include :
17- - toit-version : v2.0.0-alpha.144
17+ - toit-version : v2.0.0-alpha.161
1818 version-name : old
1919 - toit-version : latest
2020 version-name : new
Original file line number Diff line number Diff line change 11name : cli
22description : Tools, like an argument parser, to create command-line applications.
33environment :
4- sdk : ^2.0.0-alpha.144
4+ sdk : ^2.0.0-alpha.161
55dependencies :
66 fs :
77 url : github.com/toitlang/pkg-fs
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import host.file
1212import host.directory
1313import io
1414import system
15- import uuid
1615
1716import .utils_
1817
Original file line number Diff line number Diff line change 22// Use of this source code is governed by an MIT-style license that can be
33// found in the package's LICENSE file.
44
5- import uuid
5+ import uuid show Uuid
66import system
77
88import .cache
@@ -816,7 +816,7 @@ class OptionPatterns extends Option:
816816A Uuid option.
817817*/
818818class OptionUuid extends Option :
819- default / uuid. Uuid?
819+ default / Uuid?
820820
821821 /**
822822 Creates a new Uuid option.
@@ -845,8 +845,8 @@ class OptionUuid extends Option:
845845
846846 type -> string : return "uuid"
847847
848- parse str / string --for-help-example / bool= false -> uuid. Uuid :
849- return uuid .parse str --on-error =:
848+ parse str / string --for-help-example / bool= false -> Uuid :
849+ return Uuid .parse str --on-error =:
850850 throw "Invalid value for option '$ name ': '$ str '. Expected a UUID."
851851
852852
Original file line number Diff line number Diff line change 44
55import cli
66import expect show *
7- import uuid
7+ import uuid show Uuid
88
99main :
1010 test-string
@@ -131,14 +131,14 @@ test-uuid:
131131 expect-null option .default
132132 expect-equals "uuid" option .type
133133
134- option = cli .OptionUuid "uuid" --default = uuid .NIL
135- expect-equals uuid .NIL option .default
134+ option = cli .OptionUuid "uuid" --default = Uuid .NIL
135+ expect-equals Uuid .NIL option .default
136136
137137 value := option .parse "00000000-0000-0000-0000-000000000000"
138- expect-equals uuid .NIL value
138+ expect-equals Uuid .NIL value
139139
140140 value = option .parse "00000000-0000-0000-0000-000000000001"
141- expect-equals ( uuid .parse "00000000-0000-0000-0000-000000000001" ) value
141+ expect-equals ( Uuid .parse "00000000-0000-0000-0000-000000000001" ) value
142142
143143 expect-throw "Invalid value for option 'uuid': 'foo'. Expected a UUID." :
144144 option .parse "foo"
You can’t perform that action at this time.
0 commit comments