Skip to content

Commit

Permalink
Fixed automatic message in env
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed Aug 31, 2024
1 parent dfc1bd2 commit e9a8efb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)

var APP_VERSION = "1.7.0"
var APP_VERSION = "1.7.1"

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Expand Down
4 changes: 1 addition & 3 deletions cmd/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var scriptCmd = &cobra.Command{
Use: "script",
Short: "Runs script on each service, if it specified",
Run: runScript,
Aliases: []string{"asdf", "scripts", "commands"},
Aliases: []string{"asdf", "asd", "scripts", "commands"},
}

var ScriptNamesFromFlag []string
Expand Down Expand Up @@ -88,7 +88,6 @@ func runScript(cmd *cobra.Command, _ []string) {
utils.GenerateEnvForService(
corgi,
service,
"# 🐶 Generate env file for script",
scriptServiceCmd.CopyEnvFromFilePath,
)
}
Expand All @@ -99,7 +98,6 @@ func runScript(cmd *cobra.Command, _ []string) {
utils.GenerateEnvForService(
corgi,
service,
"# 🐶 Generate env file for script",
"",
)
}
Expand Down
3 changes: 1 addition & 2 deletions utils/generateEnv.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func GenerateEnvForServices(corgiCompose *CorgiCompose) {
GenerateEnvForService(
corgiCompose,
service,
"# 🐶 Auto generated vars by corgi",
"",
)
}
Expand All @@ -148,9 +147,9 @@ func GenerateEnvForServices(corgiCompose *CorgiCompose) {
func GenerateEnvForService(
corgiCompose *CorgiCompose,
service Service,
corgiGeneratedMessage string,
copyEnvFilePath string,
) error {
corgiGeneratedMessage := "# 🐶 Auto generated vars by corgi"
err := EnsurePathExists(service.AbsolutePath)
if err != nil {
fmt.Println("Error ensuring directory:", err)
Expand Down

0 comments on commit e9a8efb

Please sign in to comment.