component: Automatically determine names

This commit is contained in:
Tom Wiesing 2022-10-17 20:39:53 +02:00
parent 10df1c3243
commit e320bb37bb
No known key found for this signature in database
31 changed files with 84 additions and 113 deletions

View file

@ -16,12 +16,8 @@ type Control struct {
Servables []component.Servable
}
func (control Control) Name() string {
return "dis" // TODO: Rename this to control!
}
func (control Control) Path() string {
return filepath.Join(control.Core.Config.DeployRoot, "core", control.Name())
return filepath.Join(control.Still.Config.DeployRoot, "core", "dis")
}
//go:embed all:control control.env