Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for BoolFlag (0.2 sec)

  1. 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 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  2. 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())
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 07 15:10:40 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  3. 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",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. 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",
    		},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 19.7K bytes
    - Viewed (1)
  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
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:05:24 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top