Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Support indepotent behavior for add / remove #175

Open
EugenMayer opened this issue Nov 1, 2020 · 0 comments
Open

Support indepotent behavior for add / remove #175

EugenMayer opened this issue Nov 1, 2020 · 0 comments

Comments

@EugenMayer
Copy link

EugenMayer commented Nov 1, 2020

It would be great to be able to add and remove entries (using a flag like --force) where the behavior does not break

  • add is used even though the item already exists
  • remove is used even though the item is already missing

Right now i use this for add:

storm add $NAME $USER@$HOST:$PORT 2>&1 | grep -v error || storm edit "$NAME" $USER@$HOST:$PORT

and this for remove

storm delete $NAME > /dev/null 2>&1 || true

This is important for automations with ansible/homemaker and others, where you setup shared / common ssh aliases and things like that.

Thanks!

@EugenMayer EugenMayer changed the title Support indepotent behavior Support indepotent behavior for add / remove Nov 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant