#21 "show schedule" command should only run in the correct topic
Closed by glb. Opened by rlengland.

I believe that is currently topic 2 " In progress followup" where the command will list beta and final release announcements.


"topic", in this case, isn't strictly one of the numbered topics of the agenda. The $TOPIC variable iterates over the blocks loaded into @TOPICS. You'll need to check for some unique value in $TOPICS[$TOPIC] variable to know that you are in one of the "test days" or "schedule" topics.

Unfortunately, $TOPIC is being post-incremented in the _topic routine. That will need to be changed to a pre-increment ($TOPICS[++$TOPIC]) so that $TOPICS[$TOPIC] can be checked elsewhere to know what section/topic is current (with post-increment, $TOPICS[$TOPIC] is always left pointing at the next topic instead of the current one).

Also, you'll have to stick a dummy value on the front of the @TOPICS list so that the pre-increment works correctly the first time.

Also, you'll have to stick a dummy value on the front of the @TOPICS list so that the pre-increment works correctly the first time.

... Or better yet, just set $TOPIC to -1 initially. 🙂

Metadata Update from @glb:
- Issue status updated to: Closed (was: Open)

Metadata
Related Pull Requests