{backup,snapshot}: Rename common code to export

This commit is contained in:
Tom Wiesing 2022-10-07 22:12:14 +02:00
parent b3a827e042
commit bf57c0d5a6
No known key found for this signature in database
14 changed files with 145 additions and 133 deletions

View file

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