mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-11-01 03:04:12 +01:00
19 lines
315 B
Go
19 lines
315 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/cupcakearmy/autorestic/internal"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var infoCmd = &cobra.Command{
|
|
Use: "info",
|
|
Short: "Show info about the config",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
internal.GetConfig().Describe()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(infoCmd)
|
|
}
|