<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50280</bug_id>
          
          <creation_ts>2024-05-04 14:09:40 +0300</creation_ts>
          <short_desc>Надо добавить подсказку, как завершить ввод</short_desc>
          <delta_ts>2024-05-04 20:26:11 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Infrastructure</classification>
          <product>Infrastructure</product>
          <component>girar</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>andy</cc>
    
    <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>245839</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2024-05-04 14:09:40 +0300</bug_when>
    <thetext>$ ssh git task approve 347424 100
Enter passphrase for key &apos;/home/asy/.ssh/asy-key-ssh-ed25519&apos;:
task approve: Go ahead and type the text of approval

И дальше приходится вспоминать, а как?.. Редкий момент...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245840</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2024-05-04 14:13:33 +0300</bug_when>
    <thetext>Ctrl + D

Но написать надо. Что-то вроде

Go ahead and type the text of approval (Ctrl + D for end)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245841</commentid>
    <comment_count>2</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2024-05-04 15:20:54 +0300</bug_when>
    <thetext>(In reply to Sergey Y. Afonin from comment #0)
&gt; $ ssh git task approve 347424 100
&gt; Enter passphrase for key &apos;/home/asy/.ssh/asy-key-ssh-ed25519&apos;:
&gt; task approve: Go ahead and type the text of approval
&gt; 
&gt; И дальше приходится вспоминать, а как?.. Редкий момент...

Этот интерактивный вариант сложно сделать удобным. :(

В качестве workaround можно давать команду:
ssh gyle task approve 347424 100 &lt;&lt;&lt;&apos;Approved&apos;
ssh gyle task run 444444 -m - &lt;&lt;&lt;&apos;Task message&apos;

P. S. Я ещё видел какой-то недокументированный способ поставить сразу кучу одобрений.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245847</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Vasilyev">andy</who>
    <bug_when>2024-05-04 20:26:11 +0300</bug_when>
    <thetext>(Ответ для Arseny Maslennikov на комментарий #2)
&gt; P. S. Я ещё видел какой-то недокументированный способ поставить сразу кучу
&gt; одобрений.

$ echo OK | ssh girar task approve 123456 all</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>