Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MsgOutputFormats (0.24 sec)

  1. istioctl/pkg/util/formatting/formatter.go

    	YAMLFormat = "yaml"
    )
    
    var (
    	MsgOutputFormatKeys = []string{LogFormat, JSONFormat, YAMLFormat}
    	MsgOutputFormats    = make(map[string]bool)
    	termEnvVar          = env.Register("TERM", "", "Specifies terminal type.  Use 'dumb' to suppress color output")
    )
    
    func init() {
    	for _, key := range MsgOutputFormatKeys {
    		MsgOutputFormats[key] = true
    	}
    }
    
    // Print output messages in the specified format with color options
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. istioctl/pkg/analyze/analyze.go

      # List available analyzers
      istioctl analyze -L`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			msgOutputFormat = strings.ToLower(msgOutputFormat)
    			_, ok := formatting.MsgOutputFormats[msgOutputFormat]
    			if !ok {
    				return util.CommandParseError{
    					Err: fmt.Errorf("%s not a valid option for format. See istioctl analyze --help", msgOutputFormat),
    				}
    			}
    
    			if listAnalyzers {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
Back to top