Skip to content

Commit

Permalink
[ND-7015] Fix the environment variables deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Aris Buzachis <[email protected]>
  • Loading branch information
aris-bunnyshell committed Dec 21, 2023
1 parent 35477c5 commit d5317be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/variable/action/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ package action

import (
"bunnyshell.com/cli/pkg/api/variable"
"bunnyshell.com/cli/pkg/config"
"bunnyshell.com/cli/pkg/lib"
"github.com/spf13/cobra"
)

func init() {
settings := config.GetSettings()

deleteOptions := variable.NewDeleteOptions()

command := &cobra.Command{
Expand All @@ -18,8 +15,6 @@ func init() {
ValidArgsFunction: cobra.NoFileCompletions,

RunE: func(cmd *cobra.Command, args []string) error {
deleteOptions.ID = settings.Profile.Context.Project

err := variable.Delete(deleteOptions)
if err != nil {
return lib.FormatCommandError(cmd, err)
Expand Down

0 comments on commit d5317be

Please sign in to comment.