Implement Periodic Scheduler in the CLI
https://github.com/renderedtext/s2-public-api-docs
CLI:
sem get schedules
sem get schedule <SCHEDULE_NAME>
sem edit schedule <SCHEDULE_NAME>
sem create schedule <SCHEDULE_NAME>
sem delete schedule <SCHEDULE_NAME>
sem apply -f <PATH_TO_FILE>
sem create -f <PATH_TO_FILE>
Listing all schedules is not yet supported by the API if I have read the docs correctly:
sem get schedules
Hmm yea. @DamjanBecirovic can we drop this "project_id" being required? :) https://github.com/renderedtext/s2-public-api-docs#list--schedules
One more thing, we also need:
sem create -f <PATH_TO_FILE>
@shiroyasha tnx. Updated description.
What's the difference between create -f and apply -f ?
@vendelin8 Valid question.
create -f creates a new, non-existing, resource.
apply -f updates an existing resource.
We had plans to expand apply -f to support a logic like:
if resource.exists?
update(resource)
else
create(resource)
end
but this has not yet been implemented.
Ok, thanks.