Skip to content

sync: add option to prune non-managed keys#47

Merged
shoenig merged 3 commits intomainfrom
prune-local-keys
Feb 12, 2023
Merged

sync: add option to prune non-managed keys#47
shoenig merged 3 commits intomainfrom
prune-local-keys

Conversation

@shoenig
Copy link
Copy Markdown
Owner

@shoenig shoenig commented Feb 12, 2023

  • sync: add --prune flag for removing all non-github managed keys
  • readme: update with prune

Closes #46

This PR adds a `--prune` flag for force removing all non-github
managed keys. Will refuse to write an empty file - if `--prune`
is set but github returns no keys, we exit with an error code
without writing anything, to prevent mishaps.

Closes #46
@shoenig shoenig merged commit 42146c1 into main Feb 12, 2023
@shoenig shoenig deleted the prune-local-keys branch December 29, 2025 19:40
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.

Option to delete keys missing from GitHub

1 participant