From fb3e5bbd43392fe49a9c1c3f6377fc2daa891859 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 9 Jun 2021 11:34:51 -0700 Subject: [PATCH] input edit: allow renaming the environment Signed-off-by: Andrea Luzzardi --- cmd/dagger/cmd/input/edit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/dagger/cmd/input/edit.go b/cmd/dagger/cmd/input/edit.go index 92f20502..61920fbe 100644 --- a/cmd/dagger/cmd/input/edit.go +++ b/cmd/dagger/cmd/input/edit.go @@ -64,6 +64,7 @@ var editCmd = &cobra.Command{ if err := yaml.Unmarshal(data, &newState); err != nil { lg.Fatal().Err(err).Msg("failed to decode file") } + st.Name = newState.Name st.Inputs = newState.Inputs if err := workspace.Save(ctx, st); err != nil { lg.Fatal().Err(err).Msg("failed to save state")