Skip to content

Commit e55824f

Browse files
committed
add type aliases
1 parent 6c3e28d commit e55824f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pkg/cli/compose/loader.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ import (
1616
"gopkg.in/yaml.v3"
1717
)
1818

19+
type Project = compose.Project
20+
21+
type ServiceConfig = compose.ServiceConfig
22+
1923
type LoaderOptions struct {
2024
ConfigPaths []string
2125
WorkingDir string
@@ -59,7 +63,7 @@ func (c Loader) LoadProjectName(ctx context.Context) (string, error) {
5963
return project.Name, nil
6064
}
6165

62-
func (c Loader) LoadProject(ctx context.Context) (*compose.Project, error) {
66+
func (c Loader) LoadProject(ctx context.Context) (*Project, error) {
6367
// Set logrus send logs via the term package
6468
termLogger := logs.TermLogFormatter{Term: term.DefaultTerm}
6569
logrus.SetFormatter(termLogger)

0 commit comments

Comments
 (0)