go: go.chromium.org/chromiumos/infra/go/internal/cmd Index | Files

package cmd

import "go.chromium.org/chromiumos/infra/go/internal/cmd"

Copyright 2019 The Chromium OS Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Package Files

cmd.go

type CommandRunner Uses

type CommandRunner interface {
    RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error
}

type FakeCommandRunner Uses

type FakeCommandRunner struct {
    Stdout      string
    Stderr      string
    ExpectedCmd []string
    ExpectedDir string
    FailCommand bool
    FailError   string
}

func (FakeCommandRunner) RunCommand Uses

func (c FakeCommandRunner) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error

type FakeCommandRunnerMulti Uses

type FakeCommandRunnerMulti struct {
    CommandRunners []FakeCommandRunner
    // contains filtered or unexported fields
}

func (*FakeCommandRunnerMulti) RunCommand Uses

func (c *FakeCommandRunnerMulti) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error

type RealCommandRunner Uses

type RealCommandRunner struct{}

func (RealCommandRunner) RunCommand Uses

func (c RealCommandRunner) RunCommand(ctx context.Context, stdoutBuf, stderrBuf *bytes.Buffer, dir, name string, args ...string) error

Package cmd imports 6 packages (graph) and is imported by 1 packages. Updated 2019-08-20. Refresh now. Tools for package owners.