summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/hashicorp/go-sockaddr/cmd/sockaddr/vendor/github.com/mitchellh/cli/ui_writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/go-sockaddr/cmd/sockaddr/vendor/github.com/mitchellh/cli/ui_writer.go')
-rw-r--r--vendor/github.com/hashicorp/go-sockaddr/cmd/sockaddr/vendor/github.com/mitchellh/cli/ui_writer.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/vendor/github.com/hashicorp/go-sockaddr/cmd/sockaddr/vendor/github.com/mitchellh/cli/ui_writer.go b/vendor/github.com/hashicorp/go-sockaddr/cmd/sockaddr/vendor/github.com/mitchellh/cli/ui_writer.go
deleted file mode 100644
index 1e1db3cf6..000000000
--- a/vendor/github.com/hashicorp/go-sockaddr/cmd/sockaddr/vendor/github.com/mitchellh/cli/ui_writer.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package cli
-
-// UiWriter is an io.Writer implementation that can be used with
-// loggers that writes every line of log output data to a Ui at the
-// Info level.
-type UiWriter struct {
- Ui Ui
-}
-
-func (w *UiWriter) Write(p []byte) (n int, err error) {
- n = len(p)
- if n > 0 && p[n-1] == '\n' {
- p = p[:n-1]
- }
-
- w.Ui.Info(string(p))
- return n, nil
-}