File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 11module github.com/urfave/cli/docs/v3
22
3- go 1.18
3+ go 1.23.2
44
55replace github.com/urfave/cli/v3 => ../
66
77require (
8- github.com/urfave/cli-altsrc/v3 v3.0.0-alpha2
9- github.com/urfave/cli/v3 v3.0.0-alpha9
8+ github.com/urfave/cli-altsrc/v3 v3.0.1
9+ github.com/urfave/cli/v3 v3.1.1
1010)
1111
1212require (
13- github.com/BurntSushi/toml v1.3.2 // indirect
14- github.com/stretchr/testify v1.9 .0 // indirect
13+ github.com/BurntSushi/toml v1.5.0 // indirect
14+ github.com/stretchr/testify v1.10 .0 // indirect
1515 gopkg.in/yaml.v3 v3.0.1 // indirect
1616)
Original file line number Diff line number Diff line change 11github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8 =
22github.com/BurntSushi/toml v1.3.2 /go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ =
3+ github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg =
4+ github.com/BurntSushi/toml v1.5.0 /go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho =
35github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
46github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
57github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
68github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
79github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
810github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
11+ github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
912github.com/urfave/cli-altsrc/v3 v3.0.0-alpha2 h1:j4SaBpPB8++L0c0KuTnz/Yus3UQoWJ54hQjhIMW8rCM =
1013github.com/urfave/cli-altsrc/v3 v3.0.0-alpha2 /go.mod h1:Q79oyIY/z4jtzIrKEK6MUeWC7/szGr46x4QdOaOAIWc =
14+ github.com/urfave/cli-altsrc/v3 v3.0.1 h1:v+gHk59syLk8ao9rYybZs43+D5ut/gzj0omqQ1XYl8k =
15+ github.com/urfave/cli-altsrc/v3 v3.0.1 /go.mod h1:8UtsKKcxFVzvaoySFPfvQOk413T+IXJhaCWyyoPW3yM =
1116gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
1217gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
1318gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ import (
159159
160160 " github.com/urfave/cli/v3"
161161 " github.com/urfave/cli-altsrc/v3"
162+ yaml " github.com/urfave/cli-altsrc/v3/yaml"
162163)
163164
164165func main () {
@@ -168,7 +169,7 @@ func main() {
168169 Name: " password" ,
169170 Aliases: []string {" p" },
170171 Usage: " password for the mysql database" ,
171- Sources: altsrc. YAML (" somekey" , altsrc.StringSourcer (" /path/to/filename" )),
172+ Sources: cli. NewValueSourceChain (yaml. YAML (" somekey" , altsrc.StringSourcer (" /path/to/filename" ) )),
172173 },
173174 },
174175 }
@@ -193,6 +194,7 @@ import (
193194
194195 " github.com/urfave/cli/v3"
195196 " github.com/urfave/cli-altsrc/v3"
197+ yaml " github.com/urfave/cli-altsrc/v3/yaml"
196198)
197199
198200func main () {
@@ -210,7 +212,7 @@ func main() {
210212 Name: " password" ,
211213 Aliases: []string {" p" },
212214 Usage: " password for the mysql database" ,
213- Sources: altsrc. YAML (" somekey" , altsrc.NewStringPtrSourcer (&filename)),
215+ Sources: cli. NewValueSourceChain (yaml. YAML (" somekey" , altsrc.NewStringPtrSourcer (&filename) )),
214216 },
215217 },
216218 }
You can’t perform that action at this time.
0 commit comments