seeedfarm: add a quit command and fix the view command - brcon2025-hackathons - Bitreichcon 2025 Hackathons
 (HTM) git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/brcon2025-hackathons
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
       ---
 (DIR) commit cf8fffb39e892e8458e279bd69f81f484b05452d
 (DIR) parent 4abec6f4ce6d41ef57a3a1a508bd178c071fc9af
 (HTM) Author: Josuah Demangeon <me@josuah.net>
       Date:   Fri,  1 Aug 2025 20:56:33 +0200
       
       seeedfarm: add a quit command and fix the view command
       
       Diffstat:
         M seeedfarming/session.sh             |       5 +++++
       
       1 file changed, 5 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/seeedfarming/session.sh b/seeedfarming/session.sh
       @@ -31,6 +31,7 @@ while true; do
                echo " [p]  Get a python prompt on the current script"
                echo " [r]  Reset the board and remove the script"
                echo " [v]  View the script"
       +        echo " [q]  Quit"
                echo -n "seeedcluster[$num]>>> "
                read action || exit
        
       @@ -67,8 +68,12 @@ while true; do
                        rm -f "$script"
                        ;;
                (v)
       +                script=$SEEED_SCRIPTS/ttyACM$num.py
                        cat "$script"
                        ;;
       +        (q)
       +                exit
       +                ;;
                (*)
                        echo "error: unknown command '$action' selected"
                        ;;