@@ 63-75 (lines=13) @@ | ||
60 | * |
|
61 | * @return Question |
|
62 | */ |
|
63 | public function getJiraUrlQuestion() |
|
64 | { |
|
65 | $question = new Question('<question>Please enter your Jira URL:</question> '); |
|
66 | $question->setValidator(function ($value) { |
|
67 | if (trim($value) === '') { |
|
68 | throw new \Exception('The URL cannot be empty'); |
|
69 | } |
|
70 | ||
71 | return $value; |
|
72 | }); |
|
73 | ||
74 | return $question; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Get JIRA username question |
|
@@ 82-94 (lines=13) @@ | ||
79 | * |
|
80 | * @return Question |
|
81 | */ |
|
82 | public function getJiraUsernameQuestion() |
|
83 | { |
|
84 | $question = new Question('<question>Please enter your Jira username:</question> '); |
|
85 | $question->setValidator(function ($value) { |
|
86 | if (trim($value) === '') { |
|
87 | throw new \Exception('The username cannot be empty'); |
|
88 | } |
|
89 | ||
90 | return $value; |
|
91 | }); |
|
92 | ||
93 | return $question; |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * Get JIRA password question |