From 3511fcd2f2eae730932937837e69af6cd1a5229c Mon Sep 17 00:00:00 2001 From: TangRufus Date: Sun, 3 Nov 2019 03:09:06 +0000 Subject: [PATCH] Misc cleanup --- cmd/db_open.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/db_open.go b/cmd/db_open.go index 122e812e..4cde92ab 100644 --- a/cmd/db_open.go +++ b/cmd/db_open.go @@ -120,7 +120,6 @@ func (c *DBOpenCommand) Run(args []string) int { if dbCredentialsErr != nil { c.UI.Error(fmt.Sprintf("Error createing temporary db credentials JSON file: %s", dbCredentialsErr)) } - c.UI.Info(fmt.Sprintf(dbCredentialsJson.Name())) defer deleteFile(dbCredentialsJson.Name()) // Template playbook files from package to Trellis @@ -133,10 +132,8 @@ func (c *DBOpenCommand) Run(args []string) int { playbookCommand := execCommand("ansible-playbook", playbookPath, "-e", "env="+environment, "-e", "site="+siteName, "-e", "dest="+dbCredentialsJson.Name()) appendEnvironmentVariable(playbookCommand, "ANSIBLE_RETRY_FILES_ENABLED=false") - logCmd(playbookCommand, c.UI, true) playbookErr := playbookCommand.Run() - if playbookErr != nil { c.UI.Error(fmt.Sprintf("Error running ansible-playbook: %s", playbookErr)) return 1 @@ -189,7 +186,7 @@ Arguments: SITE Name of the site (ie: example.com) Options: - --app Database client to be used; Supported: tableplus, sequel-pro + --app Database client to be open with; Supported: tableplus, sequel-pro -h, --help show this help `