Skip to content

Commit

Permalink
add FindModule() to bee
Browse files Browse the repository at this point in the history
  • Loading branch information
Lack30 committed Apr 12, 2024
1 parent a903978 commit 6e6ecf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bee.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ func (rt *Runtime) ReadModule(dir string) error {
return rt.modules.LoadDir(dir)
}

func (rt *Runtime) FindModule(name string) (*module.Module, bool) {
return rt.modules.Find(name)
}

func (rt *Runtime) Execute(ctx context.Context, host, shell string, opts ...RunOption) ([]byte, error) {
ech := make(chan error, 1)
ch := make(chan []byte, 1)
Expand Down

0 comments on commit 6e6ecf5

Please sign in to comment.