[agent-automation] fix unused imports in cli.go and cli_test.go
This commit is contained in:
parent
938b08c734
commit
452ef5f1fa
2 changed files with 2 additions and 3 deletions
|
|
@ -3,7 +3,6 @@ package cli
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Run executes the CLI with the given arguments.
|
// Run executes the CLI with the given arguments.
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
func TestRunNoArgs(t *testing.T) {
|
func TestRunNoArgs(t *testing.T) {
|
||||||
oldStdout := os.Stdout
|
oldStdout := os.Stdout
|
||||||
r, w, _ := os.Pipe()
|
_, w, _ := os.Pipe()
|
||||||
os.Stdout = w
|
os.Stdout = w
|
||||||
|
|
||||||
err := Run([]string{})
|
err := Run([]string{})
|
||||||
|
|
@ -23,7 +23,7 @@ func TestRunNoArgs(t *testing.T) {
|
||||||
|
|
||||||
func TestRunHelp(t *testing.T) {
|
func TestRunHelp(t *testing.T) {
|
||||||
oldStdout := os.Stdout
|
oldStdout := os.Stdout
|
||||||
r, w, _ := os.Pipe()
|
_, w, _ := os.Pipe()
|
||||||
os.Stdout = w
|
os.Stdout = w
|
||||||
|
|
||||||
err := Run([]string{"help"})
|
err := Run([]string{"help"})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue