- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for isTerminal (0.47 sec)
-
internal/color/color.go
// ansi coloring on dumb terminals. IsTerminal = func() bool { return !color.NoColor } Bold = func() func(format string, a ...interface{}) string { if IsTerminal() { return color.New(color.Bold).SprintfFunc() } return fmt.Sprintf }() RedBold = func() func(a ...interface{}) string { if IsTerminal() { return color.New(color.FgRed, color.Bold).SprintFunc() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 17:57:52 UTC 2024 - 3.8K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
regex = flag.String("include-path", "(test/e2e/|test/e2e_node)", "only files with paths matching this regex is touched") isTerminal = term.IsTerminal(int(os.Stdout.Fd())) logPrefix = "" aliases = map[*regexp.Regexp]string{} ) type analyzer struct { fset *token.FileSet // positions are relative to fset ctx build.Context
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/testFixtures/groovy/org/gradle/testing/fixture/MultiJvmTestCompatibility.groovy
*/ static final String CONSOLE_CHECK = JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_22) ? "assertFalse(System.console().isTerminal());" : "assertNull(System.console());"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Apr 06 02:21:33 UTC 2024 - 1.2K bytes - Viewed (0) -
cmd/server-startup-msg.go
apiEndpointStr := strings.TrimSpace(strings.Join(apiEndpoints, " ")) // Colorize the message and print. logger.Info(color.Blue("API: ") + color.Bold(fmt.Sprintf("%s ", apiEndpointStr))) if color.IsTerminal() && (!globalServerCtxt.Anonymous && !globalServerCtxt.JSON && globalAPIConfig.permitRootAccess()) { logger.Info(color.Blue(" RootUser: ") + color.Bold("%s ", cred.AccessKey))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.8K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go
// For line-based UI, PrintErr writes to standard error. PrintErr(...interface{}) // IsTerminal returns whether the UI is known to be tied to an // interactive terminal (as opposed to being redirected to a file). IsTerminal() bool // WantBrowser indicates whether a browser should be opened with the -http option. WantBrowser() bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 7.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/driver/driver.go
// For line-based UI, PrintErr writes to standard error. PrintErr(...interface{}) // IsTerminal returns whether the UI is known to be tied to an // interactive terminal (as opposed to being redirected to a file). IsTerminal() bool // WantBrowser indicates whether browser should be opened with the -http option. WantBrowser() bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 9.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java
} finally { lock.unlock(); } ExecResultImpl newResult = new ExecResultImpl(exitValue, execExceptionFor(failureCause, currentState), displayName); if (!currentState.isTerminal() && newState != ExecHandleState.DETACHED) { try { broadcast.getSource().executionFinished(this, newResult); } catch (Exception e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 15.2K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
pod.Annotations[kubetypes.ConfigSourceAnnotationKey] = "file" pods := []*v1.Pod{pod} kl.podManager.SetPods(pods) isTerminal, err := kl.SyncPod(context.Background(), tt.updateType, pod, nil, &kubecontainer.PodStatus{}) assert.NoError(t, err) if isTerminal { t.Fatalf("pod should not be terminal: %#v", pod) } podFullName := kubecontainer.GetPodFullName(pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
pkg/kubelet/pod_workers_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 75.6K bytes - Viewed (0) -
cmd/common-main.go
serverDebugLog = env.Get("_MINIO_SERVER_DEBUG", config.EnableOff) == config.EnableOn currentReleaseTime time.Time orchestrated = IsKubernetes() || IsDocker() ) func init() { if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) { color.TurnOff() } if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" { color.TurnOff() } if runtime.GOOS == "windows" {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 31.5K bytes - Viewed (0)