(c *cli.Context)
| 49 | } |
| 50 | |
| 51 | func managementTokenCommand(c *cli.Context) error { |
| 52 | log := cliutil.CreateStderrLogger(c) |
| 53 | |
| 54 | token, err := cliutil.GetManagementToken(c, log, cfapi.Logs, buildInfo) |
| 55 | if err != nil { |
| 56 | return err |
| 57 | } |
| 58 | tokenResponse := struct { |
| 59 | Token string `json:"token"` |
| 60 | }{Token: token} |
| 61 | |
| 62 | return json.NewEncoder(os.Stdout).Encode(tokenResponse) |
| 63 | } |
| 64 | |
| 65 | func buildTailCommand(subcommands []*cli.Command) *cli.Command { |
| 66 | return &cli.Command{ |
nothing calls this directly
no test coverage detected