cuth / unsplash-wallpaper

Use an image from unsplash.com as your background image from a simple command.
MIT License
266 stars 24 forks source link

feature: cli exit code #38

Open aivarsV opened 4 years ago

aivarsV commented 4 years ago

Return code could be useful for scripting. For example, I always keep only one image file in my wallpapers folder. If download was succesful, I would like to remove previous wallpaper, but I have no way of knowing if new image was actually downloaded.

In theory I could write some hacky script, that checks, if file count in folder has increased, but exit code seems more elegant solution.