diff --git a/cmd/worker/actions/dotnet/add-nuget.go b/cmd/worker/actions/dotnet/add-nuget.go index c683ecd..41b0c06 100644 --- a/cmd/worker/actions/dotnet/add-nuget.go +++ b/cmd/worker/actions/dotnet/add-nuget.go @@ -56,6 +56,17 @@ func (a addToProject) GetCategoryName() string { return "docker" } +// Execute executes the addToProject action by starting a Docker container with the specified image name, environment variables, +// volume bindings, and context. It sets the container ID in the process Parameters map under the containerId property. +// +// Parameters: +// +// process: The process on which to execute the addToProject action. +// +// Returns: +// +// types.Process: The modified process after execution. +// error: An error if the addToProject action failed to execute. func (a addToProject) Execute(process types.Process) (types.Process, error) { ctx := context.Background() diff --git a/cmd/worker/actions/dotnet/add-to-sln.go b/cmd/worker/actions/dotnet/add-to-sln.go index bf4cd67..65b8d25 100644 --- a/cmd/worker/actions/dotnet/add-to-sln.go +++ b/cmd/worker/actions/dotnet/add-to-sln.go @@ -64,6 +64,18 @@ func (a addToSln) GetCategoryName() string { return "dotnet" } +// Execute executes the addToSln action by starting a Docker container with the specified image name, +// environment variables, volume bindings, and context. It also sets the container ID in the process +// object for later use. +// +// Parameters: +// +// process: The process object containing the necessary properties and parameters. +// +// Returns: +// +// types.Process: The updated process object after executing the action. +// error: An error if the action fails to execute. func (a addToSln) Execute(process types.Process) (types.Process, error) { ctx := context.Background() projectPath, err := a.projectPath.GetStringFrom(&process)