2019-10-29 20:54:47 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
2019-11-02 14:32:58 +00:00
|
|
|
log "github.com/sirupsen/logrus"
|
2019-10-29 20:54:47 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Clean artifacts built and installed by authelia-scripts
|
|
|
|
func Clean(cobraCmd *cobra.Command, args []string) {
|
2019-11-02 14:32:58 +00:00
|
|
|
log.Debug("Removing `" + OutputDir + "` directory")
|
2019-10-29 20:54:47 +00:00
|
|
|
err := os.RemoveAll(OutputDir)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|