Compare commits

..

6 commits

Author SHA1 Message Date
6302de004f
feat(cmd): add sequence flag to execute multiple functions
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/build unknown status
2024-12-07 01:04:12 +01:00
91df45ed5f
chore(deps): update golangci/golangci-lint docker tag to v1.62.2 2024-12-07 01:04:11 +01:00
da8b10f7b8
test(config,git,logger): add some test functions 2024-12-07 01:04:11 +01:00
b19cf01534
add woodpecker pipeline 2024-12-07 01:04:11 +01:00
75e164baac
feat(internal): add quiet flag 2024-12-07 01:04:10 +01:00
b14c22f4a2
refactor(grafanabackuper): add restore function 2024-12-07 01:04:08 +01:00
3 changed files with 2 additions and 4 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 ./grafana-backuper backup --json exec /app/grafana-backuper backup --json
else else
exec ./grafana-backuper --json exec /app/grafana-backuper --json
fi fi

View file

@ -10,7 +10,6 @@ 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,7 +10,6 @@ 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",