component: Automatically determine names
This commit is contained in:
parent
10df1c3243
commit
e320bb37bb
31 changed files with 84 additions and 113 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue