feat: recipe sync shows changes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

See #579
This commit is contained in:
2025-08-24 15:51:54 +02:00
parent 4cb660c348
commit 9868eb5e84
4 changed files with 50 additions and 27 deletions

View File

@ -16,7 +16,6 @@ import (
recipePkg "coopcloud.tech/abra/pkg/recipe"
"coopcloud.tech/abra/pkg/secret"
"github.com/AlecAivazis/survey/v2"
"github.com/charmbracelet/lipgloss/table"
dockerClient "github.com/docker/docker/client"
"github.com/spf13/cobra"
)
@ -144,7 +143,6 @@ var AppNewCommand = &cobra.Command{
}
var appSecrets AppSecrets
var secretsTable *table.Table
if generateSecrets {
sampleEnv, err := recipe.SampleEnv()
if err != nil {
@ -178,18 +176,6 @@ var AppNewCommand = &cobra.Command{
if err != nil {
log.Fatal(err)
}
secretsTable, err = formatter.CreateTable()
if err != nil {
log.Fatal(err)
}
headers := []string{i18n.G("NAME"), i18n.G("VALUE")}
secretsTable.Headers(headers...)
for name, val := range appSecrets {
secretsTable.Row(name, val)
}
}
if newAppServer == "default" {