Move runtime around

This commit is contained in:
Tom Wiesing 2022-09-14 14:42:21 +02:00
parent ef1243ea39
commit feacd4eeae
No known key found for this signature in database
18 changed files with 39 additions and 35 deletions

View file

@ -6,12 +6,12 @@ import (
)
// Config is the configuration command
var Config wisski_distillery.Command = config{}
var Config wisski_distillery.Command = cfg{}
type config struct {
type cfg struct {
}
func (s config) Description() wisski_distillery.Description {
func (s cfg) Description() wisski_distillery.Description {
return wisski_distillery.Description{
Requirements: core.Requirements{
NeedsDistillery: true,
@ -21,7 +21,7 @@ func (s config) Description() wisski_distillery.Description {
}
}
func (s config) Run(context wisski_distillery.Context) error {
func (s cfg) Run(context wisski_distillery.Context) error {
context.Printf("%#v", context.Environment.Config)
return nil
}