Add interactive run that combines run and attach.

This commit is contained in:
Brendan Burns
2015-08-04 12:54:17 -07:00
parent d04fce045e
commit 9ac50b4980
15 changed files with 162 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ package kubectl
import (
"fmt"
"strconv"
"strings"
"github.com/spf13/cobra"
@@ -88,3 +89,11 @@ func ParseLabels(labelString string) (map[string]string, error) {
}
return labels, nil
}
func GetBool(params map[string]string, key string, defValue bool) (bool, error) {
if val, found := params[key]; !found {
return defValue, nil
} else {
return strconv.ParseBool(val)
}
}