neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
52 stars 14 forks source link

added --prune flag for push command #30

Closed TanguyAndreani closed 2 years ago

TanguyAndreani commented 4 years ago

Allows to remove files that are on the remote server but not in the local directory.

Related issue: #25

TanguyAndreani commented 4 years ago

I stashed my commits into one for clarity

TanguyAndreani commented 4 years ago

For consistency, I probably shouldn’t use display_response. Also I didn’t take --dry-run into account. I’ll add that asap.

TanguyAndreani commented 4 years ago

I could just add a dry run parameter to the delete API call or make -prune and -dry-run mutually exclusive. Which one is better?

TanguyAndreani commented 4 years ago

I'm done with it, unless someone wants me to change things.

kyledrake commented 2 years ago

Apologies for the really long delay here, thanks for this! I'll merge it now.