Make it possible to take the input as an interactive prompt
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3525127. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !612 >>> <p>--- AI TRACKER METADATA ---<br> <strong>Update Summary: </strong>Drush AI Agents have solved this, someone can copy over.<br> <strong>Check-in Date: </strong>MM/DD/YYYY (US format) [When we should see progress/get an update]<br> <strong>Due Date:</strong> MM/DD/YYYY (US format) [When the issue should be fully completed]<br> <strong>Blocked by:</strong> [#XXXXXX] (New issues on new lines)<br> <strong>Additional Collaborators:</strong> @username1, @username2<br> AI Tracker found here: <a href="https://www.drupalstarforge.ai/" title="AI Tracker">https://www.drupalstarforge.ai/</a><br> --- END METADATA ---</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We just added <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3525015" title="Status: Closed (fixed)">#3525015: Add Drush AI Command</a></span> - one direct improvement is to add so you can add multi row prompts without having to use the slash newline escape sign when pasting, we should make an interactive command.</p> <p>An interactive command is easier also for normal use, since you can do "drush ai" and then start typing away.</p> <p>Make it send on ctrl+d, making it possible to use enter as a normal new line.</p> <p>This way you can do this for simple prompts:</p> <p><code>drush ai "My single line command"</code></p> <p>or "drush ai" and then paste or write multiple lines when needed.</p> <p>Also add a progress loader.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add a interactive element if the input is empty.<br> Add a progress stamenet</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue