feat: rename config to cli
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"git.maximhutz.com/max/lambda/internal/config"
|
||||
"git.maximhutz.com/max/lambda/internal/cli"
|
||||
"git.maximhutz.com/max/lambda/internal/registry"
|
||||
)
|
||||
|
||||
@@ -27,14 +27,14 @@ func LambdaReduce() *cobra.Command {
|
||||
inputPath := args[0]
|
||||
|
||||
// Get input source.
|
||||
var source config.Source
|
||||
var source cli.Source
|
||||
if inputPath == "-" {
|
||||
source = config.StdinSource{}
|
||||
source = cli.StdinSource{}
|
||||
} else {
|
||||
source = config.FileSource{Path: inputPath}
|
||||
source = cli.FileSource{Path: inputPath}
|
||||
}
|
||||
|
||||
destination := config.StdoutDestination{}
|
||||
destination := cli.StdoutDestination{}
|
||||
|
||||
r := GetRegistry()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user