Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Support "-p all" for cache commands #65

Open
mrsilver76 opened this issue Jun 2, 2024 · 3 comments
Open

[Enhancement] Support "-p all" for cache commands #65

mrsilver76 opened this issue Jun 2, 2024 · 3 comments

Comments

@mrsilver76
Copy link

mrsilver76 commented Jun 2, 2024

Cache commands (such as --cache validate or --cache purge) require a valid platform to be provided with -p.

It would be useful if use of -p all could be used to apply the appropriate command to all platforms within the cache.

For example: Skyscraper -p all --cache validate

The workaround is that I'll have to write a script that runs Skyscraper -p $PLATFORM --cache validate where $PLATFORM contains the name of each directory located in /home/pi/.skyscraper/cache/.

@Gemba
Copy link
Owner

Gemba commented Jun 24, 2024

Good idea. Leave it with me to probably implement it.

@Gemba
Copy link
Owner

Gemba commented Nov 14, 2024

I really like the idea, but I looked into the implementation options and that gave me a headache, @mrsilver76 . Mainly because the Settings are set on start and with every platform identified these would have to be reset and initialized with the per-platform settings. It would add another loop around the section where the settings are filled in. It would be quite a design change (from single platform per Skyscraper run to multiple platform on per Skyscraper run).

Thus, don't expect this feature to be implemented soon.

@mrsilver76
Copy link
Author

Totally understand and thanks for considering it!

I'll leave it up to you if you want to close the issue.

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

No branches or pull requests

2 participants