-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1230 from aemengo/pack-interact-mode
Show detect screen during detect phase
- Loading branch information
Showing
23 changed files
with
718 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package fakes | ||
|
||
import ( | ||
"io" | ||
|
||
"github.com/buildpacks/pack/internal/build" | ||
"github.com/buildpacks/pack/internal/container" | ||
) | ||
|
||
type FakeTermui struct { | ||
handler container.Handler | ||
} | ||
|
||
func NewFakeTermui(handler container.Handler) *FakeTermui { | ||
return &FakeTermui{ | ||
handler: handler, | ||
} | ||
} | ||
|
||
func (f *FakeTermui) Run(funk func()) error { | ||
return nil | ||
} | ||
|
||
func (f *FakeTermui) Handler() container.Handler { | ||
return f.handler | ||
} | ||
|
||
func WithTermui(screen build.Termui) func(*build.LifecycleOptions) { | ||
return func(opts *build.LifecycleOptions) { | ||
opts.Interactive = true | ||
opts.Termui = screen | ||
} | ||
} | ||
|
||
func (f *FakeTermui) Debug(msg string) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Debugf(fmt string, v ...interface{}) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Info(msg string) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Infof(fmt string, v ...interface{}) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Warn(msg string) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Warnf(fmt string, v ...interface{}) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Error(msg string) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Errorf(fmt string, v ...interface{}) { | ||
// not implemented | ||
} | ||
|
||
func (f *FakeTermui) Writer() io.Writer { | ||
// not implemented | ||
return nil | ||
} | ||
|
||
func (f *FakeTermui) IsVerbose() bool { | ||
// not implemented | ||
return false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.