cmd/run: Style fixes
This makes it easier to spot the beginning of functions with long lists of parameters and return values. https://github.com/containers/toolbox/pull/1415
This commit is contained in:
parent
786723116c
commit
44664c25a3
|
|
@ -166,6 +166,7 @@ func runCommand(container string,
|
||||||
preserveFDs uint,
|
preserveFDs uint,
|
||||||
command []string,
|
command []string,
|
||||||
emitEscapeSequence, fallbackToBash, pedantic bool) error {
|
emitEscapeSequence, fallbackToBash, pedantic bool) error {
|
||||||
|
|
||||||
if !pedantic {
|
if !pedantic {
|
||||||
if image == "" {
|
if image == "" {
|
||||||
panic("image not specified")
|
panic("image not specified")
|
||||||
|
|
@ -300,6 +301,7 @@ func runCommandWithFallbacks(container string,
|
||||||
preserveFDs uint,
|
preserveFDs uint,
|
||||||
command []string,
|
command []string,
|
||||||
emitEscapeSequence, fallbackToBash bool) error {
|
emitEscapeSequence, fallbackToBash bool) error {
|
||||||
|
|
||||||
logrus.Debug("Checking if 'podman exec' supports disabling the detach keys")
|
logrus.Debug("Checking if 'podman exec' supports disabling the detach keys")
|
||||||
|
|
||||||
var detachKeysSupported bool
|
var detachKeysSupported bool
|
||||||
|
|
@ -485,6 +487,7 @@ func constructExecArgs(container, preserveFDs string,
|
||||||
fallbackToBash bool,
|
fallbackToBash bool,
|
||||||
ttyNeeded bool,
|
ttyNeeded bool,
|
||||||
workDir string) []string {
|
workDir string) []string {
|
||||||
|
|
||||||
logLevelString := podman.LogLevel.String()
|
logLevelString := podman.LogLevel.String()
|
||||||
|
|
||||||
execArgs := []string{
|
execArgs := []string{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue