Chore: add cli test
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,6 +9,7 @@ config.toml
|
|||||||
sysprompts/*
|
sysprompts/*
|
||||||
!sysprompts/alice_bob_carl.json
|
!sysprompts/alice_bob_carl.json
|
||||||
!sysprompts/coding_assistant.json
|
!sysprompts/coding_assistant.json
|
||||||
|
!cli-tests/sort-text/task.txt
|
||||||
history_bak/
|
history_bak/
|
||||||
.aider*
|
.aider*
|
||||||
tags
|
tags
|
||||||
|
|||||||
10
cli-tests/sort-text/setup.sh
Normal file
10
cli-tests/sort-text/setup.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir -p /tmp/sort-text
|
||||||
|
|
||||||
|
printf "cat" > /tmp/sort-text/file1.txt
|
||||||
|
printf "red" > /tmp/sort-text/file2.txt
|
||||||
|
printf "dog" > /tmp/sort-text/file3.txt
|
||||||
|
printf "blue" > /tmp/sort-text/file4.txt
|
||||||
2
cli-tests/sort-text/task.txt
Normal file
2
cli-tests/sort-text/task.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
go to /tmp/sort-text, create directories: animals, colors
|
||||||
|
sort /tmp/sort-text/*.txt into created directories by text content
|
||||||
Reference in New Issue
Block a user