Compare commits
6 commits
c8f52b5af1
...
6302de004f
Author | SHA1 | Date | |
---|---|---|---|
6302de004f | |||
91df45ed5f | |||
da8b10f7b8 | |||
b19cf01534 | |||
75e164baac | |||
b14c22f4a2 |
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func NewRestoreCommand(c *config.Config) *cobra.Command {
|
||||
backupCmd := &cobra.Command{
|
||||
restoreCmd := &cobra.Command{
|
||||
Use: "restore",
|
||||
Short: "Restore the dashboards from a git repository to grafana.",
|
||||
Long: "Restore the dashboards from a git repository to grafana.",
|
||||
|
@ -35,9 +35,9 @@ func NewRestoreCommand(c *config.Config) *cobra.Command {
|
|||
},
|
||||
}
|
||||
|
||||
backupCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check")
|
||||
restoreCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check")
|
||||
|
||||
return backupCmd
|
||||
return restoreCmd
|
||||
}
|
||||
|
||||
func restore(ctx context.Context, cfg *config.Config) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue