Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for bool_flag (0.04 sec)

  1. tensorflow/BUILD

    load("//tensorflow:strict.default.bzl", "py_strict_library")
    
    # copybara:comment_end
    # buildifier: enable=out-of-order-load
    load("@bazel_skylib//lib:selects.bzl", "selects")
    load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "bool_setting")
    load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda")
    load(
        "//tensorflow:tensorflow.bzl",
        "VERSION",
        "VERSION_MAJOR",
        "check_deps",
        "if_google",
        "if_oss",
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Wed Nov 12 19:21:56 UTC 2025
    - 53.1K bytes
    - Viewed (0)
  2. internal/config/bool-flag_test.go

    	testCases := []struct {
    		flagStr        string
    		expectedResult BoolFlag
    		expectedErr    bool
    	}{
    		{"", BoolFlag(false), true},
    		{"junk", BoolFlag(false), true},
    		{"true", BoolFlag(true), false},
    		{"false", BoolFlag(false), false},
    		{"ON", BoolFlag(true), false},
    		{"OFF", BoolFlag(false), false},
    		{"on", BoolFlag(true), false},
    		{"off", BoolFlag(false), false},
    	}
    
    	for _, testCase := range testCases {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  3. internal/config/bool-flag.go

    import (
    	"encoding/json"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    // BoolFlag - wrapper bool type.
    type BoolFlag bool
    
    // String - returns string of BoolFlag.
    func (bf BoolFlag) String() string {
    	if bf {
    		return "on"
    	}
    
    	return "off"
    }
    
    // MarshalJSON - converts BoolFlag into JSON data.
    func (bf BoolFlag) MarshalJSON() ([]byte, error) {
    	return json.Marshal(bf.String())
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Apr 07 15:10:40 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  4. cmd/main.go

    		Usage: "path to certs directory",
    	},
    	cli.BoolFlag{
    		Name:  "quiet",
    		Usage: "disable startup and info messages",
    	},
    	cli.BoolFlag{
    		Name:  "anonymous",
    		Usage: "hide sensitive information from logging",
    	},
    	cli.BoolFlag{
    		Name:  "json",
    		Usage: "output logs in JSON format",
    	},
    	// Deprecated flag, so its hidden now, existing deployments will keep working.
    	cli.BoolFlag{
    		Name:   "compat",
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Jul 30 22:59:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. cmd/config-versions.go

    	Version string `json:"version"`
    
    	// S3 API configuration.
    	Credential auth.Credentials `json:"credential"`
    	Region     string           `json:"region"`
    	Worm       config.BoolFlag  `json:"worm"`
    
    	// Storage class configuration
    	StorageClass storageclass.Config `json:"storageclass"`
    
    	// Notification queue configuration.
    	Notify notify.Config `json:"notify"`
    
    	// Logger configuration
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    	app.HideHelpCommand = true
    	app.Flags = []cli.Flag{
    		cli.BoolFlag{
    			Usage:  "print each file as a separate line without formatting",
    			Name:   "ndjson",
    			Hidden: true,
    		},
    		cli.BoolFlag{
    			Usage: "display inline data keys and sizes",
    			Name:  "data",
    		},
    		cli.BoolFlag{
    			Usage: "export inline data",
    			Name:  "export",
    		},
    		cli.BoolFlag{
    			Usage: "combine inline data",
    			Name:  "combine",
    		},
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 40.4K bytes
    - Viewed (0)
  7. cmd/server-main.go

    	cli.IntFlag{
    		Name:   "log-size",
    		Usage:  "specify the maximum server log file size in bytes before its rotated",
    		Value:  10 * humanize.MiByte,
    		EnvVar: "MINIO_LOG_SIZE",
    		Hidden: true,
    	},
    	cli.BoolFlag{
    		Name:   "log-compress",
    		Usage:  "specify if we want the rotated logs to be gzip compressed or not",
    		EnvVar: "MINIO_LOG_COMPRESS",
    		Hidden: true,
    	},
    	cli.StringFlag{
    		Name:   "log-prefix",
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:18:36 UTC 2025
    - 35.9K bytes
    - Viewed (4)
Back to top