File tree Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 9
9
" netl" ,
10
10
" nl"
11
11
],
12
- "version" : " 6.0.2 " ,
12
+ "version" : " 6.0.4 " ,
13
13
"description" : " Network Lists management" ,
14
14
"bin" : " https://github.com/apiheat/akamai-cli-netlist/releases/download/v{{.Version}}/akamai-cli-{{.Name}}_{{.OS}}_{{.Arch}}{{.BinSuffix}}"
15
15
}
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ func cmdlistNetListName(c *cli.Context) error {
27
27
func listNetLists (c * cli.Context ) error {
28
28
29
29
listNetListOptsv2 := service.ListNetworkListsOptionsv2 {}
30
+ listNetListOptsv2 .IncludeElements = c .Bool ("includeElements" )
31
+ listNetListOptsv2 .Extended = c .Bool ("extended" )
30
32
31
33
// Since we are listing all we do not filter results
32
34
listNetListOptsv2 .Search = ""
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/apiheat/akamai-cli-common v3.1.0+incompatible
7
- github.com/apiheat/go-edgegrid/v6 v6.1.8
7
+ github.com/apiheat/go-edgegrid/v6 v6.1.10
8
8
github.com/google/go-querystring v1.0.0 // indirect
9
9
github.com/kr/pretty v0.1.0 // indirect
10
10
github.com/mitchellh/go-homedir v1.1.0 // indirect
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ github.com/apiheat/go-edgegrid v6.0.1+incompatible h1:JvwqSU89onb4/EcH32DFrp4dNu
5
5
github.com/apiheat/go-edgegrid v6.0.1+incompatible /go.mod h1:+gACyrB9+3TRIxCzdihSiCzrLSdhWvJAXq74KMfPzMs =
6
6
github.com/apiheat/go-edgegrid/v6 v6.1.8 h1:7ukNtaGVo/G3DvQ++Ngd0EV0Kb8W0ntGCMehTP+IEBw =
7
7
github.com/apiheat/go-edgegrid/v6 v6.1.8 /go.mod h1:At9IQFFbIBGaRkyqQ08gvaHB7+HEvO/GgtICYuLUZkU =
8
+ github.com/apiheat/go-edgegrid/v6 v6.1.9 h1:fyPbo5039al6AH0wMhGOYzp3IZMEDIi7Lr26eRQKIZc =
9
+ github.com/apiheat/go-edgegrid/v6 v6.1.9 /go.mod h1:At9IQFFbIBGaRkyqQ08gvaHB7+HEvO/GgtICYuLUZkU =
10
+ github.com/apiheat/go-edgegrid/v6 v6.1.10 h1:1tuDurGfJa+/t+c5MnnFlrLeSJn5d06z9RZFd8UcCr0 =
11
+ github.com/apiheat/go-edgegrid/v6 v6.1.10 /go.mod h1:At9IQFFbIBGaRkyqQ08gvaHB7+HEvO/GgtICYuLUZkU =
8
12
github.com/asaskevich/govalidator v0.0.0-20180315120708-ccb8e960c48f h1:y2hSFdXeA1y5z5f0vfNO0Dg5qVY036qzlz3Pds0B92o =
9
13
github.com/asaskevich/govalidator v0.0.0-20180315120708-ccb8e960c48f /go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY =
10
14
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY =
Original file line number Diff line number Diff line change @@ -22,7 +22,23 @@ func main() {
22
22
app .Flags = common .CreateFlags ()
23
23
app .Before = func (c * cli.Context ) error {
24
24
25
- creds := edgegrid .NewCredentials ().AutoLoad (c .GlobalString ("section" ))
25
+ var creds * edgegrid.Credentials
26
+
27
+ if c .GlobalString ("config" ) != common .HomeDir () {
28
+ var err error
29
+ creds , err = edgegrid .NewCredentials ().FromFile (c .GlobalString ("config" )).Section (c .GlobalString ("section" ))
30
+
31
+ if err != nil {
32
+ return err
33
+ }
34
+ } else {
35
+ creds = edgegrid .NewCredentials ().AutoLoad (c .GlobalString ("section" ))
36
+ }
37
+
38
+ if creds == nil {
39
+ return fmt .Errorf ("Cannot load credentials" )
40
+ }
41
+
26
42
config := edgegrid .NewConfig ().
27
43
WithCredentials (creds ).
28
44
WithLogVerbosity (c .GlobalString ("debug" )).
You can’t perform that action at this time.
0 commit comments