Skip to content

Commit

Permalink
input edit: allow renaming the environment
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
  • Loading branch information
aluzzardi committed Jun 9, 2021
1 parent d19dd4d commit fb3e5bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/dagger/cmd/input/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fb3e5bb

Please sign in to comment.