diff --git a/cmd/kdev/kdev.go b/cmd/kdev/kdev.go index 911e6117..9dd3451f 100644 --- a/cmd/kdev/kdev.go +++ b/cmd/kdev/kdev.go @@ -12,6 +12,7 @@ import ( var FlagJson bool var FlagImage string +var FlagShell string var Cmd = &cobra.Command{ Use: "kdev", @@ -23,7 +24,7 @@ var Cmd = &cobra.Command{ "dev-"+strconv.Itoa(time_utils.Unix()), "--rm", "-ti", "--image", FlagImage, - "--", "bash", + "--", FlagShell, ) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr @@ -41,4 +42,11 @@ func init() { "sikalabs/dev", "Container Image", ) + Cmd.Flags().StringVarP( + &FlagShell, + "shell", + "s", + "bash", + "Shell to run in container", + ) }