Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
add alias to database
Browse files Browse the repository at this point in the history
Signed-off-by: Jason McCallister <jason@craftcms.com>
  • Loading branch information
jasonmccallister committed Apr 3, 2020
1 parent ec5067e commit 52b9f6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions internal/cmd/restart_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import (

var (
restartDatabaseCommand = &cobra.Command{
Use: "database",
Short: "Restart database",
Use: "database",
Aliases: []string{"db"},
Short: "Restart database",
RunE: func(cmd *cobra.Command, args []string) error {
name := config.GetString("machine", flagMachineName)
engine := config.GetString("database.engine", flagDatabase)
Expand Down
1 change: 0 additions & 1 deletion internal/nitro/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import "fmt"

func RestartDatabase(name, engine, version string) []Command {
imageName := fmt.Sprintf("nitro_%v_%v", engine, version)
fmt.Println(imageName)
return []Command{
{
Machine: name,
Expand Down

0 comments on commit 52b9f6f

Please # to comment.