Un jeu de cartes à piper les une dans les autres - retour accueil
git clone git://bebou.netlib.re/pipe-game
Log | Files | Refs | README |
commit bb5d46c76a86e09be29fe66e2f265cd41c3d0f24 parent a772013d0dfebfd95c991f1dad0ddd11c93a7f4a Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Tue, 21 Jan 2025 12:07:17 +0100 Retrait du code shell Je vais le regretter ? Diffstat:
M | .gitignore | | | 1 | + |
D | choose-source | | | 1 | - |
D | create-pipeline | | | 11 | ----------- |
D | show-pipeline | | | 6 | ------ |
D | test-pipeline | | | 1 | - |
5 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ .*.sw? interface hand +tags diff --git a/choose-source b/choose-source @@ -1 +0,0 @@ -find cards -type f | fzy | xargs -r -I{} cp {} source diff --git a/create-pipeline b/create-pipeline @@ -1,11 +0,0 @@ -rm -rf pipeline/* -nb="1" -while :;do - card=$(find cards/filters -type f | fzy) - [ -z "$card" ] && exit 0 - grep -q "\$1" $card && read -p "argument : " arg - echo "$card" | - xargs basename | - xargs -r -I {} cp cards/filters/{} pipeline/$nb-{}+$arg - nb=$(( $nb + 1 )) -done diff --git a/show-pipeline b/show-pipeline @@ -1,6 +0,0 @@ -[ $1 = "-a" ] \ -&& { find pipeline -type f | - sort | - xargs -n1 sh -c 'cat $1 | sed "$ s/$/ |/"' --; } \ -|| { printf "cat source/* | $(find pipeline -type f | sort | sed -E 's/\+(.*)/+\1 \1/' | paste -s -d '|') \n" | sed 's/|/|\n /g'; } - diff --git a/test-pipeline b/test-pipeline @@ -1 +0,0 @@ -printf "cat source/* | $(find pipeline -type f | sort | sed -E 's/\+(.*)/+\1 \1/' | paste -s -d '|')" | sh