MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewCmdLogout

Function NewCmdLogout

pkg/cmd/logout/logout.go:9–23  ·  view source on GitHub ↗
(f factory.Factory)

Source from the content-addressed store, hash-verified

7)
8
9func 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
25func logoutRun(f factory.Factory, cmd *cobra.Command) error {
26 configProvider, err := f.GetConfigProvider()

Callers

nothing calls this directly

Calls 1

logoutRunFunction · 0.85

Tested by

no test coverage detected