Beispiel #1
0
 def _set_workshop_url(self):
     if get_command_argument() == self._features["start"]:
         try:
             self.workshop_url = get_link()
         except IndexError:
             self.workshop_url = None
     elif get_command_argument() == self._features["verify"]:
         self.workshop_url = get_ws_url()
Beispiel #2
0
 def _set_feature(self):
     try:
         self.feature = self._features.get(get_command_argument(),
                                           "INVALID")
     except IndexError:
         self.feature = self._features.get("empty")
     self.feature = self.feature.upper()
def run():
    try:
        task_check(get_command_argument())()
    except KeyboardInterrupt:
        user_presenter.keyboard_interrupted()
Beispiel #4
0
 def _set_exercise_name(self):
     if get_command_argument() == self._features["verify"]:
         try:
             self.exercise_name = get_filename()
         except IndexError:
             self.exercise_name = None
Beispiel #5
0
 def _set_language(self):
     if get_command_argument() in [
             self._features["start"], self._features["verify"]
     ]:
         self.language = get_language()