core/commandline/shell.go
Function GenerateShellCommand
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func GenerateShellCommand(shellCommands []*cli.Command) *cli.Command {
// explicitly exclude shell if included
capturedCommands := pruneShellCommands(shellCommands)
// make sure tty is open, this will not be the case in distroless containers