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

Support indepotent behavior for add / remove #175

@EugenMayer

Description

@EugenMayer

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions