BaseCommand represents a base command
| 46 | |
| 47 | // BaseCommand represents a base command |
| 48 | type BaseCommand struct { |
| 49 | Command |
| 50 | flagsParser FlagsParser |
| 51 | flagsValidator FlagsValidator |
| 52 | |
| 53 | name string |
| 54 | cliConnection plugin.CliConnection |
| 55 | transport http.RoundTripper |
| 56 | clientFactory clients.ClientFactory |
| 57 | tokenFactory baseclient.TokenFactory |
| 58 | deployServiceURLCalculator util.DeployServiceURLCalculator |
| 59 | } |
| 60 | |
| 61 | // Initialize initializes the command with the specified name and CLI connection |
| 62 | func (c *BaseCommand) Initialize(name string, cliConnection plugin.CliConnection) { |
nothing calls this directly
no outgoing calls
no test coverage detected