Merge pull request #599 from aluzzardi/edit-name
input edit: allow renaming the environment
This commit is contained in:
commit
85da25a7ea
@ -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")
|
||||
|
Reference in New Issue
Block a user