Skip to content

Course start/stop commands #53

@sagikazarmark

Description

@sagikazarmark
  • labctl course start NAME

    • Start the next lesson
    • Error if the course is completed? Or restart from beginning? Or error and --restart flag?
  • labctl course start NAME --lesson SLUG

    • Start the lesson, if the course is not modular
    • Error if the course is modular
    • Error if lesson not found
    • Error if already running? (follow tutorial/challenge)
  • labctl course start NAME --module SLUG

    • Start the next uncompleted lesson, if the course is modular
    • Error if the course is not modular
    • Error if module not found
    • Error if all lessons are completed? Add --restart flag?
    • Error if already running? (follow tutorial/challenge)
  • labctl course start NAME --module SLUG --lesson SLUG

    • Start the lesson, if the course is modular
    • Error if the course is not modular
    • Error if module not found
    • Error if lesson not found
    • Error if already running? (follow tutorial/challenge)
  • labctl course stop NAME

    • Stop any plays under the course
  • labctl course stop NAME --lesson SLUG

  • labctl course stop NAME --module SLUG

  • labctl course stop NAME --module SLUG --lesson SLUG

Questions:

  • Should it be allowed to start more than one lesson in a course at the same time?
  • Only the SLUG is known to the user (unless they use the API to get the real name). Slug and name should both be accepted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions