Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/local/google/home/gdennis/copybara/temp/folder-destination10255077138665452864/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Nov 17, 2023
1 parent 64b3a62 commit 12de0b7
Show file tree
Hide file tree
Showing 3 changed files with 45,288 additions and 45,299 deletions.
7 changes: 0 additions & 7 deletions binding/abstract.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@ var _ CLIClient = &AbstractCLIClient{}
// AbstractCLIClient is implementation support for the CLIClient interface.
type AbstractCLIClient struct{}

// SendCommand returns an unimplemented error.
// Deprecated: Use RunCommand() instead.
// TODO(team): Remove when all clients using RunCommand.
func (*AbstractCLIClient) SendCommand(ctx context.Context, cmd string) (string, error) {
return "", errors.New("SendCommand unimplemented")
}

// SendCommandUsingRun implements SendCommand using the client's RunCommand.
func SendCommandUsingRun(ctx context.Context, cmd string, c CLIClient) (string, error) {
res, err := c.RunCommand(ctx, cmd)
Expand Down
2 changes: 0 additions & 2 deletions binding/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ type GNSIClients interface {
// CLIClient provides the interface for sending CLI commands to the DUT.
// All implementations of this interface must embed AbstractCLIClient.
type CLIClient interface {
// TODO(team): Remove when all clients using RunCommand.
SendCommand(context.Context, string) (string, error)
RunCommand(context.Context, string) (CommandResult, error)
mustEmbedAbstractCLIClient()
}
Expand Down
Loading

0 comments on commit 12de0b7

Please sign in to comment.