forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_command2.go
34 lines (28 loc) · 838 Bytes
/
fake_command2.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package fakecommand
import (
"code.cloudfoundry.org/cli/cf/commandregistry"
"code.cloudfoundry.org/cli/cf/flags"
"code.cloudfoundry.org/cli/cf/requirements"
)
type FakeCommand2 struct {
Data string
}
func (cmd FakeCommand2) MetaData() commandregistry.CommandMetadata {
return commandregistry.CommandMetadata{
Name: "fake-command2",
ShortName: "fc2",
Description: "Description for fake-command2",
Usage: []string{
"Usage of fake-command2",
},
}
}
func (cmd FakeCommand2) Requirements(_ requirements.Factory, _ flags.FlagContext) ([]requirements.Requirement, error) {
return []requirements.Requirement{}, nil
}
func (cmd FakeCommand2) SetDependency(deps commandregistry.Dependency, _ bool) commandregistry.Command {
return cmd
}
func (cmd FakeCommand2) Execute(c flags.FlagContext) error {
return nil
}