Skip to content

Setvar removes description, create updatevar or similar command to handle existing variables better. #326

@CurtisHodak

Description

@CurtisHodak

User reported but also something that could be helpful to others. When using spacectl stack environment setvar -- id <stack id> <variable> <value> the description is removed due to overwriting the variable. When these envs are managed through our terraform provider it constantly lists them as updates. User has had to add the variable description to ignore changes and leave them blank but having descriptions listed would always be better to communicate the purpose of the variable.

Instead of wanting to set the variable with the command and having to maintain the description somewhere could a new command such as 'updatevar' be created? This could update existing variables change or leave the description and update the variable. And if something goes wrong such as the variable does not already exist output an some sort of notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-investigationThis issue requires further examination to determine its validity or scope

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions