Skip to content

Commit d6d1fe5

Browse files
committed
Fix docs
1 parent f5f433a commit d6d1fe5

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

docs/go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module github.com/urfave/cli/docs/v3
22

3-
go 1.18
3+
go 1.23.2
44

55
replace github.com/urfave/cli/v3 => ../
66

77
require (
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

1212
require (
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
)

docs/go.sum

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
22
github.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=
35
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
46
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
57
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
68
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
79
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
810
github.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=
912
github.com/urfave/cli-altsrc/v3 v3.0.0-alpha2 h1:j4SaBpPB8++L0c0KuTnz/Yus3UQoWJ54hQjhIMW8rCM=
1013
github.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=
1116
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1217
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1318
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

docs/v3/examples/flags/value-sources.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

164165
func 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

198200
func 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
}

0 commit comments

Comments
 (0)