Add a metadata system

This commit is contained in:
Tom Wiesing 2022-09-20 13:11:24 +02:00
parent 07409a01be
commit 8b3218ad00
No known key found for this signature in database
16 changed files with 365 additions and 61 deletions

View file

@ -114,6 +114,11 @@ func (p purge) Run(context wisski_distillery.Context) error {
context.EPrintln(err)
}
logging.LogMessage(context.IOStream, "Purging instance metadata")
if err := instance.Metadata().Purge(); err != nil {
context.EPrintln(err)
}
logging.LogMessage(context.IOStream, "Instance %s has been purged", slug)
return nil
}