Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds delivery and pickup availability lookup to the CLI, and makes all existing account-changing commands require an explicit confirmation flag.
New read-only commands
kronan addresses— list saved delivery addresses (the default is identified in the human-readable output).kronan slots/kronan slots delivery— list live delivery slots for the default address and print the earliest available window first.kronan slots --address-id N— query a specific saved address.kronan slots pickup— print the next available pickup slot per Krónan store.--jsonfor callers that need structured output.Delivery availability is fetched through the authenticated public API using the saved address ID. Fully booked slots are filtered out;
availabilityStatus: -1is presented as available/unlimited capacity.Confirmation gate for mutations
Existing commands that change the Krónan account now stop before making an API call unless
--yesis supplied. This covers:Example:
kronan cart add 02500188 2 --yes.Cart
--dry-runoperations remain non-mutating and do not need confirmation.Verification
bun run lintbun run typecheckbun test— 27 passing tests