Skip to content

Commit

Permalink
feat(cmd/ddev): Add --shell / -s param
Browse files Browse the repository at this point in the history
Made in German Alps :)
  • Loading branch information
ondrejsika committed May 27, 2023
1 parent bc5be8e commit 67a0645
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/ddev/ddev.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

var FlagVolume bool
var FlagImage string
var FlagShell string
var FlagHostNetwork bool

var Cmd = &cobra.Command{
Expand Down Expand Up @@ -40,7 +41,7 @@ var Cmd = &cobra.Command{
cmdArgs = append(
cmdArgs,
FlagImage,
"bash",
FlagShell,
)
cmd := exec.Command("docker", cmdArgs...)
cmd.Stdout = os.Stdout
Expand Down Expand Up @@ -72,4 +73,11 @@ func init() {
false,
"Use host network (--network=host)",
)
Cmd.Flags().StringVarP(
&FlagShell,
"shell",
"s",
"bash",
"Shell to run in container",
)
}

0 comments on commit 67a0645

Please sign in to comment.