You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
315 B
19 lines
315 B
4 years ago
|
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)
|
||
|
}
|