mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
display the location of OCI or GIT Compose stack download
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
19571c2c81
commit
b6c8a2b9fc
4 changed files with 31 additions and 12 deletions
|
|
@ -28,6 +28,7 @@ import (
|
|||
"github.com/compose-spec/compose-go/v2/cli"
|
||||
"github.com/compose-spec/compose-go/v2/loader"
|
||||
"github.com/compose-spec/compose-go/v2/types"
|
||||
"github.com/docker/cli/cli/command"
|
||||
"github.com/docker/compose/v2/pkg/api"
|
||||
"github.com/moby/buildkit/util/gitutil"
|
||||
)
|
||||
|
|
@ -45,16 +46,18 @@ func gitRemoteLoaderEnabled() (bool, error) {
|
|||
return false, nil
|
||||
}
|
||||
|
||||
func NewGitRemoteLoader(offline bool) loader.ResourceLoader {
|
||||
func NewGitRemoteLoader(dockerCli command.Cli, offline bool) loader.ResourceLoader {
|
||||
return gitRemoteLoader{
|
||||
offline: offline,
|
||||
known: map[string]string{},
|
||||
dockerCli: dockerCli,
|
||||
offline: offline,
|
||||
known: map[string]string{},
|
||||
}
|
||||
}
|
||||
|
||||
type gitRemoteLoader struct {
|
||||
offline bool
|
||||
known map[string]string
|
||||
dockerCli command.Cli
|
||||
offline bool
|
||||
known map[string]string
|
||||
}
|
||||
|
||||
func (g gitRemoteLoader) Accept(path string) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue