refactor(api module): enforce typed definitions (#2238)
This commit is contained in:
1 parent
d6c1402223
commit
c2bfcc0664
79 files changed
+906
-551
No files matched your search
@@ -32,10 +32,7 @@ func saveAndOrPrintToken(c *base.Command, result *authmethods.AuthenticateResult
|
||||
}))
|
||||
|
||||
case "json":
|
||||
if ok := c.PrintJsonItem(&dummyGenericResponse{
|
||||
item: token,
|
||||
response: result.GetResponse(),
|
||||
}); !ok {
|
||||
if ok := c.PrintJsonItem(result.GetResponse()); !ok {
|
||||
return base.CommandCliError
|
||||
}
|
||||
return base.CommandSuccess
|
||||
|
||||
Reference in new issue
Block a user