Remotve machine names function from project
This commit is contained in:
parent
54146d6570
commit
591dcced22
@ -68,7 +68,7 @@ func (c *Info) Flags() []*option.Option {
|
||||
}
|
||||
|
||||
func (c *Info) Execute(trm terminal.UI, p plugincore.Project) int32 {
|
||||
mn, _ := p.MachineNames()
|
||||
mn, _ := p.TargetNames()
|
||||
trm.Output("\nMachines in this project")
|
||||
trm.Output(strings.Join(mn[:], "\n"))
|
||||
|
||||
|
||||
@ -105,7 +105,7 @@ func (c *Command) ExecuteThing(trm terminal.UI, flags map[string]interface{}) in
|
||||
}
|
||||
|
||||
func (c *Command) ExecuteInfo(trm terminal.UI, p plugincore.Project) int32 {
|
||||
mn, _ := p.MachineNames()
|
||||
mn, _ := p.TargetNames()
|
||||
trm.Output("\nMachines in this project")
|
||||
trm.Output(strings.Join(mn[:], "\n"))
|
||||
|
||||
|
||||
@ -122,12 +122,6 @@ func (p *Project) TargetIndex() (index core.TargetIndex, err error) {
|
||||
return p.basis.TargetIndex()
|
||||
}
|
||||
|
||||
// MachineNames implements core.Project
|
||||
func (p *Project) MachineNames() (names []string, err error) {
|
||||
// TODO: remove in favor or TargetNames()?
|
||||
return []string{"test"}, nil
|
||||
}
|
||||
|
||||
// Target implements core.Project
|
||||
func (p *Project) Target(nameOrId string) (core.Target, error) {
|
||||
if t, ok := p.targets[nameOrId]; ok {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user