feat: rename config to cli
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
package config
|
||||
package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
// A method of writing output to the user.
|
||||
// A Destination is method of writing output to the user.
|
||||
type Destination interface {
|
||||
// Write data to this destination.
|
||||
Write(data string) error
|
||||
}
|
||||
|
||||
// A destination writing to stdout.
|
||||
// An StdoutDestination writes to stdout.
|
||||
type StdoutDestination struct{}
|
||||
|
||||
func (d StdoutDestination) Write(data string) error {
|
||||
@@ -19,7 +19,7 @@ func (d StdoutDestination) Write(data string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// A destination writing to a file.
|
||||
// A FileDestination writes to a file.
|
||||
type FileDestination struct{ Path string }
|
||||
|
||||
func (d FileDestination) Write(data string) error {
|
||||
@@ -1,4 +1,4 @@
|
||||
package config
|
||||
package cli
|
||||
|
||||
import (
|
||||
"io"
|
||||
Reference in New Issue
Block a user