Skip to content

[FEATURE]: remove a profile via command line #1491

@shahzebsiddiqui

Description

@shahzebsiddiqui

Please describe your feature

adding onto feature #1490 we should have a command option buildtest config profiles remove that can remove an existing profile from configuration file. This can be useful way to remove a profile as pose to manually editing the file and removing the content.

This can be done with a positional argument which expects the name of profile, so let's say i want to remove python-prof i would do buildtest config profiles remove python-prof

We can have an alias for remove as rm for accessibility. If upon removal there are no profiles we should remove the top-level key profile from configuration file. We can have let's say an option -y to accept yes so user can automatically confirm yes. If its not specified then user will be prompted to select an option like yes/no to remove profile.

TODO

Suggest potential solution

No response

Additional Information

No response

Post question in Slack

  • I agree that I posted my question in slack before creating this issue

Is there an existing issue

  • I confirm there is no existing issue for this issue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions