Compare commits
6 commits
6302de004f
...
c8f52b5af1
Author | SHA1 | Date | |
---|---|---|---|
c8f52b5af1 | |||
f9018dd392 | |||
0c7af69087 | |||
066f8d764e | |||
535ed5a5c6 | |||
153e452e4f |
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewRestoreCommand(c *config.Config) *cobra.Command {
|
func NewRestoreCommand(c *config.Config) *cobra.Command {
|
||||||
restoreCmd := &cobra.Command{
|
backupCmd := &cobra.Command{
|
||||||
Use: "restore",
|
Use: "restore",
|
||||||
Short: "Restore the dashboards from a git repository to grafana.",
|
Short: "Restore the dashboards from a git repository to grafana.",
|
||||||
Long: "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 {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
restoreCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check")
|
backupCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check")
|
||||||
|
|
||||||
return restoreCmd
|
return backupCmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func restore(ctx context.Context, cfg *config.Config) error {
|
func restore(ctx context.Context, cfg *config.Config) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue