Remotve machine names function from project

This commit is contained in:
sophia 2021-08-25 16:00:20 -05:00 committed by Paul Hinze
parent 54146d6570
commit 591dcced22
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
3 changed files with 2 additions and 8 deletions

View File

@ -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"))

View File

@ -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"))

View File

@ -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 {