(f factory.Factory)
| 7 | ) |
| 8 | |
| 9 | func NewCmdLogout(f factory.Factory) *cobra.Command { |
| 10 | cmd := &cobra.Command{ |
| 11 | Use: "logout", |
| 12 | Short: "Logout of Octopus", |
| 13 | Long: "Logout of your Octopus server", |
| 14 | RunE: func(cmd *cobra.Command, args []string) error { |
| 15 | return logoutRun(f, cmd) |
| 16 | }, |
| 17 | Annotations: map[string]string{ |
| 18 | annotations.IsConfiguration: "true", |
| 19 | }, |
| 20 | } |
| 21 | |
| 22 | return cmd |
| 23 | } |
| 24 | |
| 25 | func logoutRun(f factory.Factory, cmd *cobra.Command) error { |
| 26 | configProvider, err := f.GetConfigProvider() |
nothing calls this directly
no test coverage detected