Compare commits

..

6 commits

Author SHA1 Message Date
6dd804f3d6
feat(cmd): add sequence flag to execute multiple functions
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline failed
2024-12-07 01:13:06 +01:00
9467e9d0b7
chore(deps): update golangci/golangci-lint docker tag to v1.62.2 2024-12-07 01:13:06 +01:00
632b659a24
test(config,git,logger): add some test functions 2024-12-07 01:13:06 +01:00
c520b5455f
add woodpecker pipeline 2024-12-07 01:13:05 +01:00
64a96bc8e2
feat(internal): add quiet flag 2024-12-07 01:13:05 +01:00
1f0d76ba9e
refactor(grafanabackuper): add restore function 2024-12-07 01:13:03 +01:00
3 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# Check if the environment variable GRAFANA_MODE is set # Check if the environment variable GRAFANA_MODE is set
if [ -z "$GB_SEQUENCE" ]; then if [ -z "$GB_SEQUENCE" ]; then
exec /app/grafana-backuper backup --json exec ./grafana-backuper backup --json
else else
exec /app/grafana-backuper --json exec ./grafana-backuper --json
fi fi

View file

@ -10,6 +10,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
//nolint:dupl // This function may be the same as or similar to other cmd functions.
func NewBackupCommand(c *config.Config) *cobra.Command { func NewBackupCommand(c *config.Config) *cobra.Command {
backupCmd := &cobra.Command{ backupCmd := &cobra.Command{
Use: "backup", Use: "backup",

View file

@ -10,6 +10,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
//nolint:dupl // This function may be the same as or similar to other cmd functions.
func NewRestoreCommand(c *config.Config) *cobra.Command { func NewRestoreCommand(c *config.Config) *cobra.Command {
restoreCmd := &cobra.Command{ restoreCmd := &cobra.Command{
Use: "restore", Use: "restore",