mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-23 21:09:15 -05:00
General code spring cleaning: * move file paths from `consts` package to `filepaths` * move InitData and ExportData to query and control packages
29 lines
623 B
Go
29 lines
623 B
Go
package modinstaller
|
|
|
|
import (
|
|
"github.com/turbot/go-kit/helpers"
|
|
"github.com/turbot/steampipe/utils"
|
|
)
|
|
|
|
func InstallWorkspaceDependencies(opts *InstallOpts) (_ *InstallData, err error) {
|
|
utils.LogTime("cmd.InstallWorkspaceDependencies")
|
|
defer func() {
|
|
utils.LogTime("cmd.InstallWorkspaceDependencies end")
|
|
if r := recover(); r != nil {
|
|
err = helpers.ToError(r)
|
|
}
|
|
}()
|
|
|
|
// install workspace dependencies
|
|
installer, err := NewModInstaller(opts)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if err := installer.InstallWorkspaceDependencies(); err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return installer.installData, nil
|
|
}
|