Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for stdin (0.3 sec)

  1. misc/ios/go_ios_exec.go

    			continue
    		}
    		env = append(env, e)
    	}
    	lldb := exec.Command(
    		"python",
    		"-", // Read script from stdin.
    		target,
    		appdir,
    		deviceapp,
    	)
    	lldb.Args = append(lldb.Args, args...)
    	lldb.Env = env
    	lldb.Stdin = strings.NewReader(lldbDriver)
    	lldb.Stdout = os.Stdout
    	var out bytes.Buffer
    	lldb.Stderr = io.MultiWriter(&out, os.Stderr)
    	err := lldb.Start()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  2. istioctl/pkg/validate/validate.go

    	var errs error
    	var reader io.ReadCloser
    	warningsByFilename := map[string]validation.Warning{}
    
    	processFile := func(path string) {
    		var err error
    		if path == "-" {
    			reader = io.NopCloser(os.Stdin)
    		} else {
    			reader, err = os.Open(path)
    			if err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("cannot read file %q: %v", path, err))
    				return
    			}
    		}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. istioctl/pkg/kubeinject/kubeinject.go

    `,
    		RunE: func(c *cobra.Command, _ []string) (err error) {
    			if err = validateFlags(); err != nil {
    				return err
    			}
    			var reader io.Reader
    
    			if inFilename == "-" {
    				reader = os.Stdin
    			} else {
    				var in *os.File
    				if in, err = os.Open(inFilename); err != nil {
    					return err
    				}
    				reader = in
    				defer func() {
    					if errClose := in.Close(); errClose != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    	if err != nil {
    		return nil, err
    	}
    	return setupConfigdumpZtunnelConfigWriter(debug, out)
    }
    
    func readFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    			ndjson = true
    		}
    
    		toPrint := make([]string, 0, 16)
    		for _, file := range files {
    			var r io.Reader
    			var sz int64
    			switch file {
    			case "-":
    				r = os.Stdin
    			default:
    				f, err := os.Open(file)
    				if err != nil {
    					return err
    				}
    				if st, err := f.Stat(); err == nil {
    					sz = st.Size()
    				}
    				defer f.Close()
    				r = f
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  6. src/archive/tar/reader.go

    	// io.CopyN done shortly afterwards to trigger any IO errors.
    	var seekSkipped int64 // Number of bytes skipped via Seek
    	if sr, ok := r.(io.Seeker); ok && n > 1 {
    		// Not all io.Seeker can actually Seek. For example, os.Stdin implements
    		// io.Seeker, but calling Seek always returns an error and performs
    		// no action. Thus, we try an innocent seek to the current position
    		// to see if Seek is really supported.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. istioctl/pkg/proxyconfig/proxyconfig.go

    	if err != nil {
    		return nil, err
    	}
    	return setupConfigdumpEnvoyConfigWriter(debug, out)
    }
    
    func readFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/callback_c_gc.c

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build gc
    
    #include "_cgo_export.h"
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    /* Test calling panic from C.  This is what SWIG does.  */
    
    extern void crosscall2(void (*fn)(void *, int), void *, int);
    extern void _cgo_panic(void *, int);
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 592 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/callback_c_gccgo.c

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build gccgo
    
    #include "_cgo_export.h"
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    /* Test calling panic from C.  This is what SWIG does.  */
    
    extern void _cgo_panic(const char *);
    extern void *_cgo_allocate(size_t);
    
    void
    callPanic(void)
    {
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 452 bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.21.md

    - Client-go exec credential plugins will pass stdin only when interactive terminal is detected on stdin. This fixes a bug where previously it was checking if **stdout** is an interactive terminal. ([#99654](https://github.com/kubernetes/kubernetes/pull/99654), [@ankeesler](https://github.com/ankeesler))
    Plain Text
    - Registered: Fri May 03 09:05:14 GMT 2024
    - Last Modified: Fri Oct 14 07:03:14 GMT 2022
    - 367.3K bytes
    - Viewed (4)
Back to top