Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: able to remove an environment #167

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

berendsliedrecht
Copy link
Member

  • Allows users to remove environments
  • Improved error messages

Closes #165

(@karimStekelenburg I also assigned you if you want to check it out)

Signed-off-by: blu3beri [email protected]

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement. Did not test locally, approving to unblock but please check out the copy updates.

@@ -105,6 +107,8 @@ impl HelpStrings {

HelpStrings::Configuration => "Add agents to your configuration or view your current configuration. To quickly get started run the following command: aries-cli configuration add --default",
HelpStrings::ConfigurationAdd => "Add a new, or overwrite an existing, agent your configuration file",
HelpStrings::ConfigurationRemove => "PERMANENTLY remove an agent from your configuration",
HelpStrings::ConfigurationRemoveEnvironment => "Environment to delete",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistency: let's pick either "remove" or "delete". Given that the command is remove let's go with that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sounds good!

cli/src/modules/configuration.rs Outdated Show resolved Hide resolved
cli/src/modules/configuration.rs Outdated Show resolved Hide resolved
debug!(
"{} environment {} from the configuration",
"Deleting".bold().red(),
environment.yellow()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should only reach for yellow when warning about something. I think just bold works here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah seems okay for me.

@berendsliedrecht berendsliedrecht force-pushed the feat/remove-environment branch from 2fe666c to eab29b9 Compare April 15, 2022 09:05
@berendsliedrecht berendsliedrecht merged commit e4a4043 into animo:main Apr 15, 2022
@berendsliedrecht berendsliedrecht deleted the feat/remove-environment branch April 15, 2022 09:05
berendsliedrecht added a commit to berendsliedrecht/siera-cli that referenced this pull request Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for dropping environments from the config
2 participants